Invalid use of Null explained

C

Claude

Could one of you clever pros kindly try to point me in the right direction;
When creating a query, I get the error message "Invalid use of Null". I have
used the Nz function in all the calculations, to no avail. If I could know
why this error is generated, I might be able to find the bugger causing it.
Thanks. Claude
 
K

kingston via AccessMonster.com

Make a copy of the query and drop fields from your query one by one to
pinpoint the problem. If this doesn't work, then it is in your relationships.
You might be trying to join on a datapoint that is Null. You can fix this by
going into SQL mode and using Nz([ProblemField],...).
 
J

John W. Vinson

Could one of you clever pros kindly try to point me in the right direction;
When creating a query, I get the error message "Invalid use of Null". I have
used the Nz function in all the calculations, to no avail. If I could know
why this error is generated, I might be able to find the bugger causing it.
Thanks. Claude

You'll get this error if you try to assign a NULL value to a Number or String
datatype (either in an assignment statement or in a function call). Only a
Variant datatype variable can be set to NULL.

Are you calling any functions or doing any math operations in the query?
Perhaps you could post the SQL here.

John W. Vinson [MVP]
 

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

Top