C
Chris K
I want to change criteria of a query (just date really) by including the
value from a combo box (Booking = UK Date) and I've noticed after couple
errors that it only likes dates in US format
I tried CDATE() which didn't work and finally used the format function to
change the date to US format
It seems to work fine now but is there better/correct way
With CurrentDb.QueryDefs("Letter to Induction")
.SQL = "SELECT [JHPclients].* From [JHPclients] WHERE [booked] = #"
& Format(Bookings, "mm/dd/yy") & "# ORDER BY JHPclients.[First Name]"
End With
I'm bemused by my use of quotes "" within quotes but the single apostrophes
' didn't work and it still seems to work anyhow?
value from a combo box (Booking = UK Date) and I've noticed after couple
errors that it only likes dates in US format
I tried CDATE() which didn't work and finally used the format function to
change the date to US format
It seems to work fine now but is there better/correct way
With CurrentDb.QueryDefs("Letter to Induction")
.SQL = "SELECT [JHPclients].* From [JHPclients] WHERE [booked] = #"
& Format(Bookings, "mm/dd/yy") & "# ORDER BY JHPclients.[First Name]"
End With
I'm bemused by my use of quotes "" within quotes but the single apostrophes
' didn't work and it still seems to work anyhow?