Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax Missing Operator

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
Getting Syntax Missing Operator error on the following line:


Code:
DoCmd.RunSQL "insert into dbo_OutcomeChanges (LeadID, OutcomeID, EmployeeID ) values (" & Me.LeadID & ", " & Me.OutcomeID.Column(1) & ", " & Forms!frmLeads!LoggedInAs & ");"
 
best way to debug this is always do

dim strSql as string
strSql = "insert into dbo_OutcomeChanges (LeadID, OutcomeID, EmployeeID ) values (" & Me.LeadID & ", " & Me.OutcomeID.Column(1) & ", " & Forms!frmLeads!LoggedInAs & ");"

debug.print strSql
'now look at it. Post the results if necessary
...
docmd.runsql strSql
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top