G
Guest
I'm reposting this because I really need help with the sql statement below. I
apologize for the reposting but I'm desperate. Please forgive me and help me
if you can. Thanks, Rob
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Private Sub lstTemplates_DblClick(Cancel As Integer)
Dim sql As String
sql = "INSERT INTO tblDictation ( fldDescriptionOfProcedure, fldVisitNo,
fldCreator ) " & _
"SELECT ( fldDescriptionOfProcedure , " & " Me.txtVisitNO, " & " &
Me.fldCreator ) " & _
"FROM tblDictationLU " & _
"WHERE tblDictationLU.fldDictationLUno = " & Me.lstTemplates.Column(0)
Me.Form.Refresh
DoCmd.RunSQL sql
End Sub
apologize for the reposting but I'm desperate. Please forgive me and help me
if you can. Thanks, Rob
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Private Sub lstTemplates_DblClick(Cancel As Integer)
Dim sql As String
sql = "INSERT INTO tblDictation ( fldDescriptionOfProcedure, fldVisitNo,
fldCreator ) " & _
"SELECT ( fldDescriptionOfProcedure , " & " Me.txtVisitNO, " & " &
Me.fldCreator ) " & _
"FROM tblDictationLU " & _
"WHERE tblDictationLU.fldDictationLUno = " & Me.lstTemplates.Column(0)
Me.Form.Refresh
DoCmd.RunSQL sql
End Sub