Jacob said:
Ok Dirk, I have a good one for you....here are your answers...
My regional settings are dd/MM/yyyy Displays in the example as....
Short Date 11/08/2009
Long Date Tuesday, 11 August, 2009
When it is set to this, I can type in my date normally and everything
comes back ok. However, the dates in the qry are showing in this format
mm/dd/yyyy
My concern is that it seems that Access somehow has the two backwards. I
can reverse my regional setting to mm/dd/yyyy and it shows right in the
qry after I run it but have to type in the month first. GRRRR! I
understand if this is a computer issue....
If the query is selecting the correct data, but just formatting the dates
incorrectly, that is presumably the fault of the Format property of (a) the
table field, (b) the query field, or (c) the form control (if any) that is
displaying the data. If no form is involved here, then (c) doesn't apply.
So check the table design and the query design. In the table, check the
Format property for the field. Does it specify the date format? Either
clear it or change it to "Short Date". Note: even if you know it was set to
t"Short Date" before, make sure it is still set to that format.
Check the query that is returning the data. In the query's design view,
click on the grid column for the DateSold field, then open the property
sheet for that field. Check the Format property. Make sure that it's
either blank or set to Short Date.
Make a similar check with any form control that is bound to this field.
If all the properties are set correctly, we have to entertain the
possibility that somehow the dates were entered incorrectly, or else were
converted incorrectly when you switched the field type from Date/Time to
Text or from Text to Date/Time. You never answered my question about how
values are entered in these fields: manually, by code, or by default value
referring to the Date() function. Please answer that.
See if you can pick a record where you know what the date ought to be, but
the date expressed in short date format is ambiguous. Then find out what
the real date entered in that field by querying it and forcing the date
format to something totally ambiguous; e.g.,
SELECT
DateSold,
Format(DateSold, "dd-mmmm-yyyy") As FormattedDate
FROM YourTable
See what the results of that are, and whether the dates are really as you
expect.