Solved

Access 2013 - Invalid use of Null

Posted on 2013-06-13
3
583 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
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…

786 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