I'm new to VBA, cant get a query to work
db.Execute "UPDATE t_inquiry " _
& "SET [car rental contract printed?] = True " _
& "WHERE [Customer_ID] = (SELECT [Gast_ID] FROM t_customer WHERE t_customer.[Mail 1] = '" & [rs]![Mail 1] & "')" _
& "AND [car rental contract printed?] = [rs]![car rental contract printed?];"
theres something wrong in second line "where clause" if i remove that line then query works.
Does anyone have any idea please? thanks