I see what you mean, the query was reading a UK format as a US format so I needed to convert it to US format within the query.
I used
Format(Me.SDate, "mm dd yyyy")
and it worked a treat.
Thanks for the tip.
I currently use a short date in UK format (dd/mm/yy) in a On Click event from a form to use in a query within some VB code. But this date is then used in US format (mm/dd/yy). How do I convert it back to UK format within the code so that the output is correct?
I tried the following to convert it...
I have a form which, after selecting a "Staff" record and a year from two seperate comb boxes should list all sickness records for the selections in a list box.
I am using the following code to do this -
Private Sub cmbYearSelect_AfterUpdate()
Dim StartDate As Date
Dim...
I have a database used to store staff sickness. It currently consists of a "Staff" table to store staff details (name, number, salary etc) and a "Sickness" table to store sickness records.
I have produced a form to displaying staff's name from "Staff" table and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.