I know this is one of the most confusing things in Access/vba, but can anyone explain this particular nuance
I have a Table with a field called PaymentDate defined as Date/Time.
In code I have a variable Dim wDate as Date.
I get wDate from the screen - wDate = Me.txtDate
So as I am in England I am using the dd/mm/yyyy format
Now I store it in the table
DoCmd.RunSQL "UPDATE Table SET Table.PaymentDate =#" & wDate & "#
If you now look at the table (looking at the entries made in December, you see that if the day number is > 12 then the date appears correctly (English form) but if the day is 12 or less the date gets converted to American
So 29/12/2022 appears in the table as 29/12/2022
but 6/12/2022 is rendered as 12/06/2022
So confusing