I'm wondering if someone can assist me.
When someone neglects to enter information into a field, I would like my form to message that person that they need to enter information into that field and bring the person back to that field until information has been entered.
I know that I can use conditions in properties, but that requires the user to have entered something first, then delete it and try to tab away.
I VBA I have used the following:
if isnull(me.fieldname) then
msgbox "You must enter a value for this field"
docmd.gotocontrol "fieldname"
else
endif
the result is the msgbox appears, but the user is brought to the next field.
Thank you for any help you may give.
When someone neglects to enter information into a field, I would like my form to message that person that they need to enter information into that field and bring the person back to that field until information has been entered.
I know that I can use conditions in properties, but that requires the user to have entered something first, then delete it and try to tab away.
I VBA I have used the following:
if isnull(me.fieldname) then
msgbox "You must enter a value for this field"
docmd.gotocontrol "fieldname"
else
endif
the result is the msgbox appears, but the user is brought to the next field.
Thank you for any help you may give.