Hi, I need some advice.
I use an Insert query to add a row to a table, for example:
"Insert Into table( ta_date) Values( " & myDate & "
", where myDate is a date.
The computer date format and the table field is set to the format "dd/mm/yyyy". The clients prefer to enter dates in this format.
The problem is that when the query is run, a date such as the first of August ends up as the eight of January.
I've checked myDate, before it enters the query it is "01/08/2003", but it always ends up as "08/01/2003" in the table.
I've even explicitly dimensioned myDate as a date, individually setting the month, day and year to the required values, but the problem persists.
The only solution that I've found is opening the table with a select query, and then using recordset.addnew to add a record.
Needless to say, I prefer using the Insert query.
Can anyone offer advice? It will be highly appreciated.
I use an Insert query to add a row to a table, for example:
"Insert Into table( ta_date) Values( " & myDate & "
The computer date format and the table field is set to the format "dd/mm/yyyy". The clients prefer to enter dates in this format.
The problem is that when the query is run, a date such as the first of August ends up as the eight of January.
I've checked myDate, before it enters the query it is "01/08/2003", but it always ends up as "08/01/2003" in the table.
I've even explicitly dimensioned myDate as a date, individually setting the month, day and year to the required values, but the problem persists.
The only solution that I've found is opening the table with a select query, and then using recordset.addnew to add a record.
Needless to say, I prefer using the Insert query.
Can anyone offer advice? It will be highly appreciated.