G
Guest
Hi i'm using Access 2002.
I have an unbound form frmNewClass. On this form I have a command button
that uses an insert SQL to insert a record to tblClassDate. One of my form
fields txtDate is formated as Medium Date. The corresponding table field
classDate is formatted Short Date with an input Mask of Medium Date type.
When I try to update the table the month and day values switch( eg txtDate
reads 02-Jun-05 but reads 06/02/05 in the table). this only happens however,
if the day value is <= 12, if the day value is greater that 12 then it
updates the table properly. I debugged my code and in the watch the date
value is formatted correct.
I'm using docmd.runsql to update the table. Is this what could be giving me
problems? I've read that it can mess with date formats but haven't read what
the bugs are.
Help appreciated.
thanks,
Jason
I have an unbound form frmNewClass. On this form I have a command button
that uses an insert SQL to insert a record to tblClassDate. One of my form
fields txtDate is formated as Medium Date. The corresponding table field
classDate is formatted Short Date with an input Mask of Medium Date type.
When I try to update the table the month and day values switch( eg txtDate
reads 02-Jun-05 but reads 06/02/05 in the table). this only happens however,
if the day value is <= 12, if the day value is greater that 12 then it
updates the table properly. I debugged my code and in the watch the date
value is formatted correct.
I'm using docmd.runsql to update the table. Is this what could be giving me
problems? I've read that it can mess with date formats but haven't read what
the bugs are.
Help appreciated.
thanks,
Jason