Link to home
Start Free TrialLog in
Avatar of Poop Holy
Poop Holy

asked on

Run-Time Error 3075: Syntax Error (Missing Operator) in Query Expression

Run-Time Error 3075: Syntax Error (Missing Operator) in Query Expression 'Lee' When I enter Lee in the name box

CurrentDb.Execute "INSERT INTO tblMRecord2 (Ename,Adate,Clinic,BilNo,Remarks,MLeave,MFees) Values (" & Me.Ename & "," & Me.Adate & "," & Me.txtClinic & "," & Me.txtBilNo & "," & Me.txtReasons & "," & Me.txtMLeave & ", " & Me.txtMFees & ");"

Open in new window

Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

You asked for the same here:

compile error: expected end of statement

and you got answers, so just implement those answers.
It is not only the Name field (now Ename) that fails, it is also most of the other fields that will fail.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial