chigonvh > 29-09-15, 10:07 AM
Private Sub Command0_Click()
If Command0.Caption = "More >>" Then
Command0.Caption = "Less <<"
Command11.Visible = True
Command12.Visible = True
Command13.Visible = True
Command14.Visible = True
Command15.Visible = True
Command16.Visible = True
End If
If Command0.Caption = "Less <<" Then
Command0.Caption = "More >>"
Command11.Visible = False
Command12.Visible = False
Command13.Visible = False
Command14.Visible = False
Command15.Visible = False
Command16.Visible = False
End If
End Sub
maidinhdan > 29-09-15, 10:29 AM
(29-09-15, 10:07 AM)chigonvh Đã viết: Các bác cho e hỏi tại sao câu lệnh của e sử dụng access 2013 thì được mà chuyển qua 2003 thì không chạy:
Thank u!Mã:Private Sub Command0_Click()
If Command0.Caption = "More >>" Then
Command0.Caption = "Less <<"
End If
If Command0.Caption = "Less <<" Then
Command0.Caption = "More >>"
End If
End Sub
chigonvh > 29-09-15, 10:58 AM
chigonvh > 29-09-15, 01:33 PM
Private Sub Command0_Click()
If Me!Command0.Caption = "More >>" Then
Me!Command0.Caption = "Less <<"
Me!Command11.Visible = True
MsgBox "ok"
Else
Me!Command0.Caption = "More >>"
Me!Command11.Visible = False
End If
End Sub
tranthanhan1962 > 30-09-15, 12:02 AM
(29-09-15, 10:07 AM)chigonvh Đã viết: Các bác cho e hỏi tại sao câu lệnh của e sử dụng access 2013 thì được mà chuyển qua 2003 thì không chạy:
Thank u!Mã:Private Sub Command0_Click()
If Command0.Caption = "More >>" Then
Command0.Caption = "Less <<"
...
End If
If Command0.Caption = "Less <<" Then
Command0.Caption = "More >>"
...
End If
End Sub
If Command0.Caption = "A" Then
Command0.Caption = "B"
...
End If
If Command1.Caption = "B" Then
Command1.Caption = "D"
...
End If
If Command1.Caption = "B" Then
Command1.Caption = "D"
...
End If
If Command0.Caption = "A" Then
Command0.Caption = "B"
...
End If
If Command0.Caption = "A" Then
Command0.Caption = "B"
...
End If
If Command0.Caption = "B" Then
Command0.Caption = "D"
...
End If
If Command0.Caption = "A" Then
Command0.Caption = "B"
...
End If
If Command0.Caption = "B" Then
Command0.Caption = "D"
...
End If
Private Sub Command0_Click()
If Command0.Caption = "More >>" Then
Command0.Caption = "Less <<"
...
Else
Command0.Caption = "More >>"
...
End If
End Sub
If Command0.Caption = "A" Then
Command0.Caption = "B"
Else
If Command0.Caption = "B" Then
Command0.Caption = "C"
Else
If Command0.Caption = "C" Then
Command0.Caption = "D"
Else
Command0.Caption = "A"
End If
End If
End If
Select Case Command0.Caption
Case "A"
Command0.Caption = "B"
Case "B"
Command0.Caption = "C"
Case "C"
Command0.Caption = "D"
Case Else
Command0.Caption = "A"
End Select