Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Date() function syntax for SQL Server?

Status
Not open for further replies.

trueharted

Programmer
Feb 12, 2002
66
US
I have an Access database that has a SQL Server backend. A form within Access is pointing to the following query within Access:

SELECT *
FROM dbo_tblTimesheetDetail
WHERE (((dbo_tblTimesheetDetail.DateIn)=Date() Or (dbo_tblTimesheetDetail.DateIn) Is Null));

This works fine on my Windows 2000 with Office XP computer. However, on other computers, one of which is a Windows 98 with Office 2000, it gets an error saying "Undefined function 'Date' in expression." Any suggestions?
 
How is date() doing in this query?Does it show the system time?Or some other functionality?
 
griks,

your problem is simple.

the problem is typical.Not in your syntax or sql but in your references in VBA. Please verify your references library when worked in Access 2000.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top