I
inungh
I have following criteria for my table which works for Access table,
but not SQL server table.
Between DateAdd("m",0,[forms]![frmMain]![dtpstartdate]) And DateAdd
("m",-2,[forms]![frmMain]![dtpStartdate])
It retrives data from Access table, but not SQL server.
The fileld type is datetime in SQL server.
The follwoing works for SQL server and Access table
Between [forms]![frmMain]![dtpstartdate] And [forms]![frmMain]!
[dtpEnddate]
It looks that SQL server does not recoginze the DateAdd function.
Are there any workaround to retrieve last 2 months data from SQL
server?
Your help is great appreciated,
but not SQL server table.
Between DateAdd("m",0,[forms]![frmMain]![dtpstartdate]) And DateAdd
("m",-2,[forms]![frmMain]![dtpStartdate])
It retrives data from Access table, but not SQL server.
The fileld type is datetime in SQL server.
The follwoing works for SQL server and Access table
Between [forms]![frmMain]![dtpstartdate] And [forms]![frmMain]!
[dtpEnddate]
It looks that SQL server does not recoginze the DateAdd function.
Are there any workaround to retrieve last 2 months data from SQL
server?
Your help is great appreciated,