plz help !! Undefined function 'Date' in expression

  • Thread starter MrCC via AccessMonster.com
  • Start date
M

MrCC via AccessMonster.com

hi all

please help i got mad !!!!!!

i was using date() function to get the current in access query & vba and both
doesn't work and i got this msg


Undefined function 'Date' in expression

i tried all the tricks in the internet about fix the ref. and no way .still
as it is

any new tips plz

or another way to get the current date

thanks
all
bye
 
A

Allen Browne

The most likely problem is that your database has a problem with library
references. To fix it, see:
Solving Problems with Library References
at:
http://allenbrowne.com/ser-38.html

If that is not the case, you may have a naming clash (something else named
Date.)
 
M

MrCC via AccessMonster.com

i got a nice solution

get date using windows api and kick out the access :))))

Function GetDate() As String
Dim myTime As SYSTEMTIME
Dim strBuffer As String
Dim lng As Long

GetLocalTime myTime
GetDate = CStr(DateSerial(myTime.wYear, myTime.wMonth, myTime.wDay))

End Function

i hope all try it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top