G
Guest
What I'm trying to do with the below is the following:
I have a form named frmTemplate, on that form is a list box that refers to
the different template available in the tblDictationLU. When an Item is
DblClicked on I want to insert the text from the memo field in
fldDiscriptionOfPro (comming from tblDictationLU) into the fldDesriptionOfPro
of the target table tblDictation.
With the WHERE statement I'm attempting to refer back to the tblDicationLU
and get the proper template for the memo field.
I know I've got the sql all f**d up, that's why I'm asking for help.
Thanks in advance
************************************************************
Private Sub lstTemplates_DblClick(Cancel As Integer)
Dim sql As String
sql = "INSERT INTO tblDictation ( [fldDiscriptionOfPro] )_"
FROM * tblDictationLU([fldDiscriptionOfPro])
WHERE Me.lstTemplates(1) = tblDictationLU([fldDictationLUno])
DoCmd.RunSQL sql
End Sub
I have a form named frmTemplate, on that form is a list box that refers to
the different template available in the tblDictationLU. When an Item is
DblClicked on I want to insert the text from the memo field in
fldDiscriptionOfPro (comming from tblDictationLU) into the fldDesriptionOfPro
of the target table tblDictation.
With the WHERE statement I'm attempting to refer back to the tblDicationLU
and get the proper template for the memo field.
I know I've got the sql all f**d up, that's why I'm asking for help.
Thanks in advance
************************************************************
Private Sub lstTemplates_DblClick(Cancel As Integer)
Dim sql As String
sql = "INSERT INTO tblDictation ( [fldDiscriptionOfPro] )_"
FROM * tblDictationLU([fldDiscriptionOfPro])
WHERE Me.lstTemplates(1) = tblDictationLU([fldDictationLUno])
DoCmd.RunSQL sql
End Sub