Null Values

  • Thread starter Thread starter Mark Stone
  • Start date Start date
M

Mark Stone

I have set the table column setting to not allow Null but
the form which is bound to this is allowing me to move to
the next record or even close the form without inputting
data into the text boxes.

How can I stop this from happening?

Thanks for your time.
 
I have set the table column setting to not allow Null but
the form which is bound to this is allowing me to move to
the next record or even close the form without inputting
data into the text boxes.

How can I stop this from happening?

Thanks for your time.

use the beforeUpdate event:

if isnull(Me.myTxtBox) then
Cancel=true
msgbox "Need Input"
endif
 
Check also the AllowZeroLength Property of the Field in your Table.

Check Access Help topic "Required Property" and read carefully how the
Required Property and the AllowZeroLength Property work together.
 
Mark Stone said:
I have set the table column setting to not allow Null but
the form which is bound to this is allowing me to move to
the next record or even close the form without inputting
data into the text boxes.

How can I stop this from happening?

Thanks for your time.
 

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