Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cancel a cancel statement

Status
Not open for further replies.

ftook

Programmer
Dec 4, 2006
80
0
0
GB
I have the following code on a form control

code If IsNull(Me.Code) Or Me.Code = "" Then Cancel = True /code

works great to prevent null input, but i also have an exit command button to close the form, but if cursor on the me.Code control, exit button cannot be pressed.

Any ideas please
 
I have the following code on a form control

Code:
 If IsNull(Me.Code) Or Me.Code = "" Then Cancel = True

works great to prevent null input, but i also have an exit command button to close the form, but if cursor on the me.Code control, exit button cannot be pressed.

Any ideas please
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top