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

Only if there are no records from this query, can you fill in this box

Status
Not open for further replies.

ADRIANCULLEN

Technical User
Dec 5, 2002
2
GB
My database has 2 tables, one for people and another for events for those people.

I need to check that a certain field on all the records in the second table for an individual has been completed before allowing a field in the other table to be updated.

I can write the query to do the checking based on an IDno used as the link between them and "is null" for the criteria for the required field but how do I store the information that there are no records in such a way as to use it to test entries in another control and produce a message box?
 
It might be easiest to use Dlookup. The alternative is a recordset.
 
Thanks Remou

I probably didn't make myself clear but I don't need to know the values, just the number of records which are null.
DCount does this for me.

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top