W
Wayne Morgan
Access has trouble interpreting dates in parameters. It doesn't pick up on
the data type. Placing date delimiters, #, around the date will also give an
error. To make it work, specify the parameter's data type first.
PARAMETERS [forms]![checkregister]![begdate] DateTime;
SELECT CheckRegisterPre.EntryBlankID, CheckRegisterPre.MoneyID,
CheckRegisterPre.Amount, CheckRegisterPre.Note, CheckRegisterPre.entrydate
FROM CheckRegisterPre
where checkregisterpre.entrydate = [forms]![checkregister]![begdate]
the data type. Placing date delimiters, #, around the date will also give an
error. To make it work, specify the parameter's data type first.
PARAMETERS [forms]![checkregister]![begdate] DateTime;
SELECT CheckRegisterPre.EntryBlankID, CheckRegisterPre.MoneyID,
CheckRegisterPre.Amount, CheckRegisterPre.Note, CheckRegisterPre.entrydate
FROM CheckRegisterPre
where checkregisterpre.entrydate = [forms]![checkregister]![begdate]