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

Link Table - Invalid use of null 1

Status
Not open for further replies.

scottian

Programmer
Joined
Jul 3, 2003
Messages
955
Location
GB
I have a bunch of linked tables which i query from within the database, when i try to run these queries i get error 'Invalid use of null' Ive worked out that this is due to blank records at the bottom of the excel spreadsheet that i query. once i delete these records the query runs fine. Is there a way to force the query to work regardless of whether these blank records exist in the spreadsheet or not?
search facility here is down at the moment, so sorry if this has already been answered.

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Any chance you could post your actual SQL code ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I suggest having a look at the Nz() function.


-V
 
Ha Ha Ha....what a muppet i am, Nz worked brilliantly. Cheers VRoscioli, if i could award two stars i would, but one will have to do. Thanks

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Why not simply add a WHERE clause eliminating those blank records ?
 
Never thought of that.

"Children are smarter than any of us. Know how I know that? I don't know one child with a full time job and children."...Bill Hicks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top