Using the following Update statement I get a "Compile Error: Expected: (" with the last appersand in the last line highlighted (the one directly after "strComp". I thought I've tried every variation with no luck. The string value strComp may contain hyphens. Can anybody see what I did wrong? Thanks.
strSQL = "Update Renewal"
strSQL = strSQL & " SET Renewal.SalesLastYr = " & lngSalesLastYr & ", " _
& "Renewal.LTM = " & lngLTM & ", Renewal.RenewalNotes = '" & mmoNotes & "'"
strSQL = strSQL & " WHERE Renewal.Comp = '" & strComp & "'
strSQL = "Update Renewal"
strSQL = strSQL & " SET Renewal.SalesLastYr = " & lngSalesLastYr & ", " _
& "Renewal.LTM = " & lngLTM & ", Renewal.RenewalNotes = '" & mmoNotes & "'"
strSQL = strSQL & " WHERE Renewal.Comp = '" & strComp & "'