Prompt User to enter a value in a field if left blank

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need the user of a form to get prompted if a comments field on the form is
left blank when a specific option is chosen from a drop down menu.

Example:
i have a combo box with 3 options
A) B) C)

Well, I if option "A" is selected, i need the user to enter information into
the comments field prior to exiting or moving to another record. How can i
prompt the user prior to exiting the record, when option "A" is selected that
information in the comments section is needed??

Any help is appreciated Thanks
 
Hi,
use the forms before update event:

If Me.YourCombo.Value = "A" AND IsNull(Me.YourMemoControl) Then
Cancel = True
MsgBox("Need something in the memo field")
Me.YourMemoControl.SetFocus
End If

HTH
Good luck
 
sounds like the name you are using for the comment field is
mis-spellled.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top