SpaceManagers
asked on
Invalid Use of Null after editing query SQL
Whenever I resort to editing or even just viewing a query in SQL I can no longer open the query. I will get an error message 'Invalid Use of Null'. There are no null values in the dataset. The query will work OK until such time as I look at the SQL. Once I have done that I cannot open the query in any way, not even in Design View. It will always return the same error. Yet I can export the query and see the recordset returned in, for example, Excel.
What can be causing this problem?
What can be causing this problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, it does use subqueries and a quick check on a single table works without fault, ie I cannot replicate the problem
SELECT qrySpaces_GSD.SpaceCode, qrySpaces_GSD.SpaceStandar dCode, qrySpaces_RAD.rm_std, qrySpaces_GSD.SpaceStandar dName, qrySpaces_RAD.RAD_rmstd.de scription
FROM qrySpaces_GSD INNER JOIN qrySpaces_RAD ON qrySpaces_GSD.SpaceCode=qr ySpaces_RA D.rm_id
WHERE (((qrySpaces_GSD.SpaceStan dardCode) Not Like [qrySpaces_RAD]![rm_std])) ;
This SQL is Access generated from a qbe window
SELECT qrySpaces_GSD.SpaceCode, qrySpaces_GSD.SpaceStandar
FROM qrySpaces_GSD INNER JOIN qrySpaces_RAD ON qrySpaces_GSD.SpaceCode=qr
WHERE (((qrySpaces_GSD.SpaceStan
This SQL is Access generated from a qbe window
ASKER
I have just tried to Import spreadsheet data from Excel using the Access wizard.
When I have completed all the tasks and then click the Finish button I get the Invalid use of Null error message
When I have completed all the tasks and then click the Finish button I get the Invalid use of Null error message
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Problem is not resolved.
Divided points amongst experts who tried to help.
Thanks for your efforts
Divided points amongst experts who tried to help.
Thanks for your efforts
ASKER
save the queries and close the database.
Reopen the database and now the newly created query, whence I copied the SQL, no longer works.I get the error message Invalid use of Null. This is the query that i created from scratch, mirroring the sql of the earlier query. I then viewed and copied, without changing in any way, the SQL. Now after closign the db it fails.
I have tried to repair the database but it has no effect