Hi all,
I try to insert a string value date into a temptable ACCESS table but changed to unexpected value : WHY ?
dim strdate as string
dim strsql as string
strdate = "2006-04-30"
strsql = " INSERT INTO TEMPTABLE(VDATE) VALUES ("&strdate&")"
docmd.runsql(strsql)
but always gave me the value 1972 in my temptable for
the field vdate is the text field not date ? instead of 2006-04-30
Please assist or explain why ? it changed from 2006-04-30 to 1972.
Thank in advance,
ping
I try to insert a string value date into a temptable ACCESS table but changed to unexpected value : WHY ?
dim strdate as string
dim strsql as string
strdate = "2006-04-30"
strsql = " INSERT INTO TEMPTABLE(VDATE) VALUES ("&strdate&")"
docmd.runsql(strsql)
but always gave me the value 1972 in my temptable for
the field vdate is the text field not date ? instead of 2006-04-30
Please assist or explain why ? it changed from 2006-04-30 to 1972.
Thank in advance,
ping