G
Guest
Can anyone help me with the syntax of the sql statement below. I'm terrible
at sql syntax (as you can see below.)
Thanks in advance, Rob
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sql = "INSERT INTO tblDictation ( [fldDescriptionOfProcedure], [fldVisitNo],
[fldCreator] ) " & _
"SELECT [fldDescriptionOfProcedure], " & " [txtVisitNO], " & " &
[Me.fldCreator], " & _
"FROM tblDictationLU " & _
"WHERE tblDictationLU.[fldDictationLUno] = " & Me.lstTemplates.Column(0)
DoCmd.RunSQL sql
End Sub
at sql syntax (as you can see below.)
Thanks in advance, Rob
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sql = "INSERT INTO tblDictation ( [fldDescriptionOfProcedure], [fldVisitNo],
[fldCreator] ) " & _
"SELECT [fldDescriptionOfProcedure], " & " [txtVisitNO], " & " &
[Me.fldCreator], " & _
"FROM tblDictationLU " & _
"WHERE tblDictationLU.[fldDictationLUno] = " & Me.lstTemplates.Column(0)
DoCmd.RunSQL sql
End Sub