G
Guest
I have a form where I do not want the user to be able to move to the next
record without making sure some fields have been filled in. I cannot set the
field to required in the table, because the table is being used for other
forms where the field is not required.
I have tried doing this in the event before update but this is not working
and even if it does, I'm not sure it would stop the saving of the record.
Private Sub Form_BeforeUpdate(Cancel As Integer)
If strvoltage.value is null then
msgbox "Enter Voltage"
end if
End Sub
record without making sure some fields have been filled in. I cannot set the
field to required in the table, because the table is being used for other
forms where the field is not required.
I have tried doing this in the event before update but this is not working
and even if it does, I'm not sure it would stop the saving of the record.
Private Sub Form_BeforeUpdate(Cancel As Integer)
If strvoltage.value is null then
msgbox "Enter Voltage"
end if
End Sub