I am trying to perform this kind of task: ok , assume i have already key in all the data and i want to save my data. But Before that, i have to Check a checkbox(Checkbox34) then i only can press a command button(command37) to save my record into database. Then after i press the command button(command37) , i want a string to be display that is ("your have save your data successfully") .After the string display, i wish the checkbox and the command button became uncheck and Greyed-out . I have according the task that i wanted and convert into code, But it seems to got 1 thing is not hapenning that is IT WONT DISPLAY "your have save your data successfully". Any 1 can tell me whats wrong? i have stuck here for half days and i cant figure it out.. Or guilde me please. thank you.The code that i key in is at below:
------------------------------------------------------------------------
Private Sub Check34_AfterUpdate()
If Me.Check34 = True Then
Me.Command37.Enabled = True
Else
Me.Command37.Enabled = False
End If
End Sub
Private Sub Command37_Click()
MsgBox ("your have save your data successfully")
End Sub
Private Sub Check34_LostFocus()
Me.Check34 = False
Me.Command37.Enabled = False
End Sub
------------------------------------------------------------------------
Private Sub Check34_AfterUpdate()
If Me.Check34 = True Then
Me.Command37.Enabled = True
Else
Me.Command37.Enabled = False
End If
End Sub
Private Sub Command37_Click()
MsgBox ("your have save your data successfully")
End Sub
Private Sub Check34_LostFocus()
Me.Check34 = False
Me.Command37.Enabled = False
End Sub