W
Wayne-I-M
Hi I am using INSERT INTO to send a date from an unbound text box to a table
field
text box = short date format
table field - time date format
this is producing incorrect data (the date is not being sent correctly)
Any ideas would be really helpful on formating the
#" & Format(rs!FlightDate, "yyyy/m/d") & "#
to the table
'code is
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
Do Until rs.EOF
CurrentDb.Execute "INSERT INTO tblflights " & "(BookingRef ,
FlightDate) VALUES (" & rs!BookingRef & ", #" & Format(rs!FlightDate,
"yyyy/m/d") & "#)"
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Me.Requery
Many thanks
field
text box = short date format
table field - time date format
this is producing incorrect data (the date is not being sent correctly)
Any ideas would be really helpful on formating the
#" & Format(rs!FlightDate, "yyyy/m/d") & "#
to the table
'code is
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
Do Until rs.EOF
CurrentDb.Execute "INSERT INTO tblflights " & "(BookingRef ,
FlightDate) VALUES (" & rs!BookingRef & ", #" & Format(rs!FlightDate,
"yyyy/m/d") & "#)"
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
Me.Requery
Many thanks