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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form to insert data with compulsory fields

Status
Not open for further replies.

halx

Programmer
Jun 5, 2002
35
FR
Hello,

I have a form whose control source is a table (the form is used to insert data in the table).
Suppose I want to oblige the user of the form to insert data in the field "txtName" (that is: the user cannot go to the next record or exit the form if txtName is null).
What can I do ?

Thanks

Alex
 
In the DESIGN of the TABLE that the form is bound to make the
REQUIRED property Yes
and the
ALLOW ZERO LENGTH Property No

Then Access will not allow the user to leave the current record without data in that field. ( This will work if the user is using your form & will also work if the user tries to edit the table directly. )


QED.

G LS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top