Unbound form - make a required field

Matizo

Registered User.
Local time
, 17:10
Joined
Oct 12, 2006
Messages
83
hello,

As in the title,
I've created unbounded form to add new record (job). How do I make the ClientID field required?

Thanks!
 
Given that this form is unbound, I'm presuming that you have some code that you are using to commit this date to a table.

At the start of the code put the following;
Code:
If IsNull(Me.ControlName) Then
     MsgBox "Please enter a ClientID"
     Me.ControlName.SetFocus
     Exit Sub
End If
 
Thank you John,

I added your code and it works as it should :o

Cheers!
 

Users who are viewing this thread

Back
Top Bottom