Microsoft
Software
Hardware
Network
Question : Select MAX(ISNULL(variable, 0)) is returning NULL when it should be returning 0
I am trying to select a value before I do an insert.
In the table, I am trying to grab the next available ID, but, it is returning NULL. I am trying to do this:
SELECT MAX(ISNULL(fedexid, 0)) FROM fedex
Since there are no records in the FedEx table, this is returning as NULL. How do I get the above statement to return 0 if it is NULL.
Answer : Select MAX(ISNULL(variable, 0)) is returning NULL when it should be returning 0
try
SELECT ISNULL(MAX(fedexid),0) FROM fedex
Random Solutions
Access Sample Databases - Web Sites
Promoting secondary dns server to primary
Adp Project Linked tables
Office COmmunicator 2007 - Address book sync issue
DTS export to a generated text filename
Exchange Stops inexpectedly
CAML Query Syntax?
How can I send an email in MS Access 2007 with a report as a .pdf attachment?
Mouse and Keyboard don't work after attempting to repair registry in Dell XPS (Windows XP Home)
Why can't I delete records from a linked table ? I get the message "Linked table is not supported by this ISAM."