G
gmazza via AccessMonster.com
Hi there,
I am having a problem inserting a Date field into a table, keep getting a
syntax error, any ideas, I've been trying and can't quite figure it out.
sSql = "INSERT INTO PatientData ( PatientId, ClinicalTrialId, VisitDate)
" & _
"VALUES(" & _
"'" & Me.PatientId & "', " & _
"'" & GetActiveStudy() & "', " &
_
"'" & Format(Me.VisitDate, "\#mm\
/dd\/yyyy\#") & ");"
I am having a problem inserting a Date field into a table, keep getting a
syntax error, any ideas, I've been trying and can't quite figure it out.
sSql = "INSERT INTO PatientData ( PatientId, ClinicalTrialId, VisitDate)
" & _
"VALUES(" & _
"'" & Me.PatientId & "', " & _
"'" & GetActiveStudy() & "', " &
_
"'" & Format(Me.VisitDate, "\#mm\
/dd\/yyyy\#") & ");"