EddStewart
Programmer
Hi, I have a problem with Access VBA that has me stuck so if anyone can help me, I would be most grateful:
Set rstDest = db.OpenRecordset("SELECT * FROM TotaledOrders WHERE OrderDate = " & rstSrc!DateOrdered)
Here I am trying to create/open a recordset containing all records with an OrderDate of rstSrc!DateOrdered using SQL. The table TotaledOrders sometimes contains matching records, sometimes not. If there are no matches then the program runs fine, however if a match is found, it drops out with Division by Zero Error.
If anyone has any idea as to what it might be then please respond.
Thankyou very much,
Edd Stewart
Set rstDest = db.OpenRecordset("SELECT * FROM TotaledOrders WHERE OrderDate = " & rstSrc!DateOrdered)
Here I am trying to create/open a recordset containing all records with an OrderDate of rstSrc!DateOrdered using SQL. The table TotaledOrders sometimes contains matching records, sometimes not. If there are no matches then the program runs fine, however if a match is found, it drops out with Division by Zero Error.
If anyone has any idea as to what it might be then please respond.
Thankyou very much,
Edd Stewart