Meeting Conditions BeforeUpdate

M

Melinda

Hello,
I have a form that has 3 required fields. I wrote a
macro using Access's Macro Builder to have message boxes
pop-up if the fields are null. I would now like the
macro to take place on the BeforeUpdate event, but I have
an event procedure there. I'm not much of a programmer
yet, so how does one tell VB to display a message box if,
for example, JobCode is null?
Thanks!
Melinda
 
R

Rick Brandt

Melinda said:
Hello,
I have a form that has 3 required fields. I wrote a
macro using Access's Macro Builder to have message boxes
pop-up if the fields are null. I would now like the
macro to take place on the BeforeUpdate event, but I have
an event procedure there. I'm not much of a programmer
yet, so how does one tell VB to display a message box if,
for example, JobCode is null?
Thanks!
Melinda

If IsNull(Me.ControlName) Then
MsgBox blah blah
End If
 

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

Top