I have a query that has a date field in this format (yyyymmdd) just numbers. I am reformatting the the field by creating a calculated field using the following formula:
[DateField] = Date(Left( [DateField] ,4),Mid( [DateField] ,5,2),Right( [DateField] ,2))
I keep getting a message saying my formula contains wrong number of arguments!! This formula always worked in Excel.
Please advise
Cheers
In Access you'll need to use the DateSerial() function:
DateSerial(Left([DateField], 4), Mid([DateField], 5, 2), Right([DateField], 2))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With