Add don't Allow Nulls

D

Dan @BCBS

My Access 2000 linked to SQL db's.

This databes has been used for years. I was asked to make another field
manditory. I went to the SQL table and unclicked the Allow Nulls, refreshed
the db and then relinked the table in Access.

Nothing happen, the user can still close the form without entering a value..

What am I missing????
 
O

Ofer Cohen

Add to the form BeforeUpdate event a validation, that check that field and
prompt a proper message a stop the Propcess

If IsNull(Me.[TextBoxName]) Then
MsgBox "Value must be enterd in.."
Cancel=True 'Stop the process
End If

About the table, check if it has a default value defined
 

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

Similar Threads

manditory field 2
Remove Nulls error 2
Manditory fields 1
Table Update 1
Required field 1
Locked out Completely 2
Using ODBC Linked Tables 10
Can't Add Data on SQL Server 2005 Table in Access 2002 FE 18

Top