H
Hugh self taught
Hi there all,
My eyes can't see the issue here so it must be something not obvious to the
eye or I've gone blind for looking.
I get the "There is an Invalid use of the .(dot) or ! operator or
parentheses" message when the following code executes
strSQL = "INSERT INTO Couples (CoupleNumber, MaleID, FemaleID)" & _
"VALUES (""" & [Forms]![frmAddUnlistedCouple].NewCplNumber & """, " &
[Forms]![frmAddUnlistedCouple].txtMale & ", " &
[Forms]![frmAddUnlistedCouple].txtFemale & ")"
db.Execute strSQL, dbFailOnError
CoupleNumber = Text while MaleID & FemaleID are Numeric
The confusing part is I copied & pasted the code from elsewhere in my DB &
just changed the variables so I didn't have to re-think the syntax.
Any ideas what could be the cause? I'm lost for ideas at this stage.
My eyes can't see the issue here so it must be something not obvious to the
eye or I've gone blind for looking.
I get the "There is an Invalid use of the .(dot) or ! operator or
parentheses" message when the following code executes
strSQL = "INSERT INTO Couples (CoupleNumber, MaleID, FemaleID)" & _
"VALUES (""" & [Forms]![frmAddUnlistedCouple].NewCplNumber & """, " &
[Forms]![frmAddUnlistedCouple].txtMale & ", " &
[Forms]![frmAddUnlistedCouple].txtFemale & ")"
db.Execute strSQL, dbFailOnError
CoupleNumber = Text while MaleID & FemaleID are Numeric
The confusing part is I copied & pasted the code from elsewhere in my DB &
just changed the variables so I didn't have to re-think the syntax.
Any ideas what could be the cause? I'm lost for ideas at this stage.