Solved

Access 2013 - Invalid use of Null

Posted on 2013-06-13
3
588 Views
Last Modified: 2013-06-13
Has anybody found that queries that worked in previous versions of Access, stop working in Access 2013, due to "Invalid use of Null"?

Any fixes besides adding NZ or finding the nulls?
0
Comment
Question by:tbsgadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Expert Comment

by:Kelvin Sparks
ID: 39243887
I haven't stuck it but would be interested to see the SQL of an example.

Kelvin
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 250 total points
ID: 39244001
Can't say I've noticed this happening.

My impression  (no evidence) is that Access has got less tolerant of 'bad' designs since A2007 .
If your data can contain Nulls then you must cater for it.
0
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 39244029
2013 moved to using SQL Server as the default database, so you'll likely find issues like this start to crop up as more people move to the new version.

I agree with Peter's observation - newer versions of access are far less tolerant of sketchy coding practices and syntax. A good example of that is the OpenReport issue many (including myself) found when moving to 2007

DoCmd.OpenReport "MyReport, acViewPreview, "Customer='Bob'"

This would work in earlier versions but began to fail in 2007. The 3rd argument is the "Filter" argument, and Access expected to find the name of a query there. The 4th argument is the "Where" argument, and these codes needed to be rewritten as such:

DoCmd.OpenReport "MyReport, acViewPreview, ,"Customer='Bob'"

Including a blank space for the Filter argument.

I assume that
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why this Update SQL not Updating! 15 57
unknown computers in my LAN 12 100
Excel graph in access report 1 33
Access 2003 query, remove dupes 17 25
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question