G
Guest
Please help! I am trying to validate the data select in a control. If the control in null, then I do not want the user to not be able to do anything else except select the value of the control I am checking
I can check to see if the control is null but I cannot keep the user for selecting another control on a tabbed form. How do I go about doing this? I have tried a loop and repainting the object, but nothing works
Any direction or advice will be greatly appreciated. My code is listed below
Thanks
********************************* CODE BEGINS **********************************
Dim strMsg As Strin
If IsNull(Forms![frmOne].[ControlOne]) The
Bee
MsgBox "You must make a selection", vbQuestion, "Invalid Choice
‘ Code to keep user from doing anything by making a choice
Els
‘If value is not Null, send report
Me.Refres
‘Code added here to send report to various people
DoCmd.Close acForm, "frmOne", acSaveN
End I
********************************** CODE ENDS ************************************
I can check to see if the control is null but I cannot keep the user for selecting another control on a tabbed form. How do I go about doing this? I have tried a loop and repainting the object, but nothing works
Any direction or advice will be greatly appreciated. My code is listed below
Thanks
********************************* CODE BEGINS **********************************
Dim strMsg As Strin
If IsNull(Forms![frmOne].[ControlOne]) The
Bee
MsgBox "You must make a selection", vbQuestion, "Invalid Choice
‘ Code to keep user from doing anything by making a choice
Els
‘If value is not Null, send report
Me.Refres
‘Code added here to send report to various people
DoCmd.Close acForm, "frmOne", acSaveN
End I
********************************** CODE ENDS ************************************