D
Dave
Access 2003
upon saving a form (date entered on a form)
I want to look at a field and confirm it is not empty (not looking for
specific data).
I know I need to use an if statement but not really sure of all the syntax
form name = frmDonor
Field Name =last_name
if me.last_name = null Then
MsgBox "You Must Enter a Last Name"
else
DoCmd.GoToRecord , , acNewRec
docmd.close
end if
but this is not working so I have something wrong
ALSO:
If I want more then one field validated - but only one field check at a time
How would I do that
Thanks
dave
upon saving a form (date entered on a form)
I want to look at a field and confirm it is not empty (not looking for
specific data).
I know I need to use an if statement but not really sure of all the syntax
form name = frmDonor
Field Name =last_name
if me.last_name = null Then
MsgBox "You Must Enter a Last Name"
else
DoCmd.GoToRecord , , acNewRec
docmd.close
end if
but this is not working so I have something wrong
ALSO:
If I want more then one field validated - but only one field check at a time
How would I do that
Thanks
dave