Hey guys,
I am getting an error, “Invalid use of Null” in the chkSum line. I get MsgBox "After SQL 1 Runs" then the error. I do not get the second MsgBox "After chkSum"!
I checked the IPP_Tracking table and neither the Calc_Pmt_Amount field nor the Date_Batched field has a Null record, at all.
I am at a loss with this one. Anyone have any suggestions?
Thanks in advance for any assistance you can offer.
James
I am getting an error, “Invalid use of Null” in the chkSum line. I get MsgBox "After SQL 1 Runs" then the error. I do not get the second MsgBox "After chkSum"!
I checked the IPP_Tracking table and neither the Calc_Pmt_Amount field nor the Date_Batched field has a Null record, at all.
I am at a loss with this one. Anyone have any suggestions?
Thanks in advance for any assistance you can offer.
James
Code:
[SIZE=3][FONT=Times New Roman] 'Declare Variables[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] Dim chkSum As Currency[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]'MsgBox is for testing only[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]MsgBox "After SQL 1 Runs"[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman] 'Sum the Calc_Pmt_Amount to put in the Batch table[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman][COLOR=red][B] chkSum = DSum("Calc_Pmt_Amount", "IPP_Tracking", "Date_Batched = #" & Format(Date, "d/m/yyyy") & "#")[/B][/COLOR][/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]'MsgBox is for testing only[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]MsgBox "After chkSum"[/FONT][/SIZE]