You don't need to do this, Jean-Paul. You can change your format when you
actually run a sql statement or a query.
Format([YourDateField]),"0") works very well in code (for instance, if you
are filtering via a text box in a form) so that you can treat the field as
if it was a number.
In Sql statements themselves, turn the date around so that you type
#05/17/2008#
If filtering directly in queries, Access seems quite happy with what you
have in your Regional Settings ie here in the Uk, I type the 5th of March as
#05/03/2008# in the Criteria Row of my query and it filters just fine while
a peek at the Sql statement shows that it has been obligingly converted to
#03/05/2008#
If your region is not accustomed to the mm/dd/yyyy format, then it will be
easy for your inputters to make mistakes when entering dates into the tables
or cause confusion when they are reading data.
Evi
Jean-Paul said:
Hi,
I have a table where dates are stored in foramt: dd/mm/yyyy
Now I have difficulties running SQL or filters.
I was told I should use the mm/dd/yyyy format.
How can I change the format of exsisting records
Thanks
JP