date problems

  • Thread starter Thread starter polilop
  • Start date Start date
P

polilop

i have a table with a short date fiel(dd.mm.yyyy)
i made a query to get data from a date.
When i put in my query design view that the date has to be equal to
#3.8.2005#
when i look into the sql view it writes
#8/3/2005#

It's a problem becouse it dosent give me the right data.
I'm from croatia so it maybe a locale problem but don't know how to solve
it?????
 
i have a table with a short date fiel(dd.mm.yyyy)
i made a query to get data from a date.
When i put in my query design view that the date has to be equal to
#3.8.2005#
when i look into the sql view it writes
#8/3/2005#

It's a problem becouse it dosent give me the right data.
I'm from croatia so it maybe a locale problem but don't know how to solve
it?????

3.8.2005 is an ambiguous date in Access.
It can mean March 8, or August 3.
You MUST use the American style of date entry in a query SQL,
mm/dd/yyyy, so August 8, 2005 must be written as #8/3/2005#
This has no effect on how the field is actually formatted. It will
still display as dd.mm.yyyy if that is your regional format setting.
 
That did it, just set the locale to US thx
fredg said:
3.8.2005 is an ambiguous date in Access.
It can mean March 8, or August 3.
You MUST use the American style of date entry in a query SQL,
mm/dd/yyyy, so August 8, 2005 must be written as #8/3/2005#
This has no effect on how the field is actually formatted. It will
still display as dd.mm.yyyy if that is your regional format setting.
 

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

Similar Threads


Back
Top