G
Guest
Hi
I'm just starting to learn VBA programming, so at this point I know very
little. Here is my Question: If a user is filling out a form, and he/she
leaves one of the fields blank, and then clicks the Add New Record button, I
would like a message box to pop up and remind them that they have to fill out
the field they missed before they can add another record.
I tried using an If/Then statement:
If TextBox = "" Then
MsgBox("You must fill in the Date before proceeding",vbOKonly)
but it didn't work.
Any help would be greatly appreciated. Thanks
Lou
I'm just starting to learn VBA programming, so at this point I know very
little. Here is my Question: If a user is filling out a form, and he/she
leaves one of the fields blank, and then clicks the Add New Record button, I
would like a message box to pop up and remind them that they have to fill out
the field they missed before they can add another record.
I tried using an If/Then statement:
If TextBox = "" Then
MsgBox("You must fill in the Date before proceeding",vbOKonly)
but it didn't work.
Any help would be greatly appreciated. Thanks
Lou