G
Guest
Anyone with good eye for syntax see the issue with this..getting syntax err..
strSql = "INSERT INTO [UpdatedTPlanMedication] ( UpdatedTPlanID#,
Medication, Reason, Response, Dose, SideEffect, IsMerged, TimeStamp ) " & _
"SELECT " & lngID & " As NewID, Medication, Reason, Response,
Dose, SideEffect, IsMerged, TimeStamp " & _
"FROM [UpdatedTPlanMedication] WHERE [UpdatedTPlan#] = " &
Me.[UpdatedTPlanID#] & ";"
DBEngine(0)(0).Execute strSql, dbFailOnError
thanks,
don
strSql = "INSERT INTO [UpdatedTPlanMedication] ( UpdatedTPlanID#,
Medication, Reason, Response, Dose, SideEffect, IsMerged, TimeStamp ) " & _
"SELECT " & lngID & " As NewID, Medication, Reason, Response,
Dose, SideEffect, IsMerged, TimeStamp " & _
"FROM [UpdatedTPlanMedication] WHERE [UpdatedTPlan#] = " &
Me.[UpdatedTPlanID#] & ";"
DBEngine(0)(0).Execute strSql, dbFailOnError
thanks,
don