I'm trying get some queries to work that use the DateAdd function. The queries originally refernced another Access DB, but now the tables I'm referencing reside in DB2 and are accessed by a link (actually they are views). I can query dates without error if no functions are used. However, I think DB2 stores and returns dates as yyyy/mm/dd and I'm not sure what Access is expecting. The criteria for the query is: <DateAdd("yyyy",-1,Date()). I get the following error:
SQL0181N - The string representation of a datetime value is out of range
Anyone have an idea on how to get this to work?
Thanks,
Paul
SQL0181N - The string representation of a datetime value is out of range
Anyone have an idea on how to get this to work?
Thanks,
Paul