I am trying to use the below code to add in two values into a table but I cant seem to get the VBA right.
I get the following error:
An expression you entered is the wrong data type for one of the arguments. 2498
The code I used before is below, I just wanted to add in another value (the SiteID)
Code:
DoCmd.RunSQL "INSERT INTO tblObservation ([fk_QualificationID], [fk_SiteID]) VALUES " & Me.QualificationID.Value, Me.SiteID.Value & ";"
I get the following error:
An expression you entered is the wrong data type for one of the arguments. 2498
The code I used before is below, I just wanted to add in another value (the SiteID)
DoCmd.RunSQL "INSERT INTO [tblObservation] (fk_QualificationID) SELECT " & Me.QualificationID.Value & " AS EXPR1;"