Can someone take a look see at what I am doing wrong with using DCount with IsNull?
I got a table that has a field called New_Requests and I need a count of all records where New_Requests is Null. I would have thought this would have been very simple, but apparently it’s not as straight forward as I thought.
Any suggestions?
James
Attempt 1 just returns FALSE:
Attempt 2 returns 0: (there are 5 records with Null
Attempt 3 & 4 just returns the error “Argument not optional”:
I got a table that has a field called New_Requests and I need a count of all records where New_Requests is Null. I would have thought this would have been very simple, but apparently it’s not as straight forward as I thought.
Any suggestions?
James
Attempt 1 just returns FALSE:
Code:
[FONT=Times New Roman][SIZE=3]New_Requests = IsNull(DCount("Date_Batched", "IPP_Tracking", "Date_Batched"))[/SIZE][/FONT]
Attempt 2 returns 0: (there are 5 records with Null
Code:
[FONT=Times New Roman][SIZE=3]New_Requests = DCount("Date_Batched", "IPP_Tracking", "Date_Batched Is Null")[/SIZE][/FONT]
Attempt 3 & 4 just returns the error “Argument not optional”:
Code:
[FONT=Times New Roman][SIZE=3]New_Requests = DCount("Date_Batched", "IPP_Tracking", "Date_Batched") & [COLOR=navy][B]IsNull[/B][/COLOR][/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]New_Requests = DCount("Date_Batched", "IPP_Tracking", "Date_Batched" & [COLOR=navy][B]IsNull[/B][/COLOR])[/SIZE][/FONT]
Last edited: