N
ncdavis25 via AccessMonster.com
Hi,
I'm having some troubles with a tardy database I'm creating, I created a
detention append query where I want to add all of the student tardies to
determine if they should receive a detention or not but it is not working.
when I run it, it request for me to enter a parameter value for Forms!
ScanEntry!PassSID, Forms!ScanEntry!PassDateTime, Forms!ScanEntry!
PassnMaxUnExc and then it says invalid use of Null.
The form is open and I ran the query, but I still get the Invalid use of Null
message. Where am I going wrong?
INSERT INTO DT ( SID, DTDateTime, ServeByDate, TotalLateCount )
SELECT DISTINCT Pass.SID, Max(Forms!ScanEntry!PassDateTime) AS Expr2, DLookUp
("[ServeByDate]","Dates - DT","[DTDate] = #" & Date() & "#") AS ServeByDate,
CInt(Forms!ScanEntry!PassnMaxUnExc) AS Expr1
FROM Pass
GROUP BY Pass.SID, DLookUp("[ServeByDate]","Dates - DT","[DTDate] = #" & Date
() & "#"), CInt(Forms!ScanEntry!PassnMaxUnExc);
I'm having some troubles with a tardy database I'm creating, I created a
detention append query where I want to add all of the student tardies to
determine if they should receive a detention or not but it is not working.
when I run it, it request for me to enter a parameter value for Forms!
ScanEntry!PassSID, Forms!ScanEntry!PassDateTime, Forms!ScanEntry!
PassnMaxUnExc and then it says invalid use of Null.
The form is open and I ran the query, but I still get the Invalid use of Null
message. Where am I going wrong?
INSERT INTO DT ( SID, DTDateTime, ServeByDate, TotalLateCount )
SELECT DISTINCT Pass.SID, Max(Forms!ScanEntry!PassDateTime) AS Expr2, DLookUp
("[ServeByDate]","Dates - DT","[DTDate] = #" & Date() & "#") AS ServeByDate,
CInt(Forms!ScanEntry!PassnMaxUnExc) AS Expr1
FROM Pass
GROUP BY Pass.SID, DLookUp("[ServeByDate]","Dates - DT","[DTDate] = #" & Date
() & "#"), CInt(Forms!ScanEntry!PassnMaxUnExc);