A
Adrian Parker
in VB I change the value of a Date Time Picker (MM/DD/YYYY), and use the
following code:
db.Execute ("INSERT INTO payments (studentCode, datePaid, amountPaid,
cardCheckNum) " _
& "VALUES ('" & studentCode & "', " & dtpDate & ", '" &
Val(txtAmount) & _
"', '" & txtCardCheckNum & "')")
The year in Access is showing as 1899.
Access is using Short Date notation for the field in question. So they
should match.
Why is an input date of 2004 translated to 1899 by Access?
Adrian
following code:
db.Execute ("INSERT INTO payments (studentCode, datePaid, amountPaid,
cardCheckNum) " _
& "VALUES ('" & studentCode & "', " & dtpDate & ", '" &
Val(txtAmount) & _
"', '" & txtCardCheckNum & "')")
The year in Access is showing as 1899.
Access is using Short Date notation for the field in question. So they
should match.
Why is an input date of 2004 translated to 1899 by Access?
Adrian