I apologize if not posting correctly, my first time.
I am having problem with the field "Scheduled" (7901-D'Acunha-A-5) getting:
" Syntax error (missing operator) in query expression "7901-D'Acunha-A-5', " , 'Done', 'Update', #4/6/2009 2:21:17 PM#)'
I know is related to the apostrophe and I searched and found results on (single quotes), I tried to make changes myself, with no luck.
I wasn't sure how much I should post.
==========================================
Expand|Select|Wrap|Line Numbers
- Function build_sql(Schedule_ID As Date, operation As String) As String
- build_sql = "Insert Into tblJobScheduleAuditLog ([ScheduleID],[Scheduled], [JobDate], [Status],[Action],[Timestamp]) Values (#"
- build_sql = build_sql & ScheduleID & "# , "
- build_sql = build_sql & "'" & _
- DLookup("Scheduled", "JobSchedule", "ScheduleID=#" & _
- Schedule_ID & "#") & "', "
- build_sql = build_sql & "'" & _
- DLookup("JobDate", "JobSchedule", "ScheduleID=#" & _
- Schedule_ID & "#") & "', "
- build_sql = build_sql & "'" & _
- DLookup("Status", "JobSchedule", "ScheduleID=#" & _
- Schedule_ID & "#") & "', "
- build_sql = build_sql & "'" & operation & "', "
- build_sql = build_sql & "#" & Now() & "#)"
- End Function
Thanks for any help in advance,
Emilio