W
Wind54Surfer
Hi all,
That is the error I get in the following Function and can't figure out why.
Access 2003
--------------------------------------------------------------------------
Function build_sql(Scheduled As String, operation As String) As String
build_sql = "Insert Into tblJobScheduleAuditLog Values ("
build_sql = build_sql & Scheduled & ", "
build_sql = build_sql & "'" & _
DLookup("JobDate", "JobSchedule", "Scheduled=" & _
Scheduled) & "', "
build_sql = build_sql & "'" & _
DLookup("Status", "JobSchedule", "Scheduled=" & _
Scheduled) & "', "
build_sql = build_sql & "'" & operation & "', "
build_sql = build_sql & "#" & Now() & "#)"
End Function
That is the error I get in the following Function and can't figure out why.
Access 2003
--------------------------------------------------------------------------
Function build_sql(Scheduled As String, operation As String) As String
build_sql = "Insert Into tblJobScheduleAuditLog Values ("
build_sql = build_sql & Scheduled & ", "
build_sql = build_sql & "'" & _
DLookup("JobDate", "JobSchedule", "Scheduled=" & _
Scheduled) & "', "
build_sql = build_sql & "'" & _
DLookup("Status", "JobSchedule", "Scheduled=" & _
Scheduled) & "', "
build_sql = build_sql & "'" & operation & "', "
build_sql = build_sql & "#" & Now() & "#)"
End Function