L
Les
I am using the code below to try and insert a new line into the table
"tblQualifications" with Values "id" and "CMAP"
"id" is a Text box value on a my form and "CMAP" is simply a text value in
the code.
"id" to be inserted into the field [id] in the table and "CMAP" into the
field [strQualifications].
I keep getting a syntax error. Could someone please give me the correct
sytax for this.
Thanks
Les
Dim strsql As String
If [cmap] = "True" Then
strsql = "Insert Into tblQualifications (ID)& (strQualifications)""" _
& "Values(" & Me!id & "CMAP"")"
CurrentDb.Execute strsql, dbFailOnError
Form![frmAssociate_Details].Requery
Else
End If
"tblQualifications" with Values "id" and "CMAP"
"id" is a Text box value on a my form and "CMAP" is simply a text value in
the code.
"id" to be inserted into the field [id] in the table and "CMAP" into the
field [strQualifications].
I keep getting a syntax error. Could someone please give me the correct
sytax for this.
Thanks
Les
Dim strsql As String
If [cmap] = "True" Then
strsql = "Insert Into tblQualifications (ID)& (strQualifications)""" _
& "Values(" & Me!id & "CMAP"")"
CurrentDb.Execute strsql, dbFailOnError
Form![frmAssociate_Details].Requery
Else
End If