I am having a bit of difficulty converting a date field into a char (8) within a access project. I can make the conversion work and the field populates within the table, however in format mmddyyyy if the month is January thru Sep the record will drop the first zero in the string.
I use somthing like.
dim sdate as string
sdate = format(me.datex,"mmddyyyy")
'this returns a correct value i.e. 01012006 but
when I insert into the table I am left with 1012006. This leads me to think that access has converted the date into an integer.
I have formated the table to recieve char(8). I am not going to bother posting my code because it inserts fine, I am just having a datatype issues I think.
Thanks
I use somthing like.
dim sdate as string
sdate = format(me.datex,"mmddyyyy")
'this returns a correct value i.e. 01012006 but
when I insert into the table I am left with 1012006. This leads me to think that access has converted the date into an integer.
I have formated the table to recieve char(8). I am not going to bother posting my code because it inserts fine, I am just having a datatype issues I think.
Thanks