R
rich
I am calling an update query to set the current dates
within a recordset on several different records that meet
certain criteria. Here is the code:
strUpdateDate = "UPDATE [S-Signings] SET [S-
Signings].Client_Billed_Date = Date()" & _
"WHERE ((([Forms]![S-Signing Summary]![S-
Signings Subform].[Form]![Loan#])=[Loan#]) AND (([S-
Signings].[Signing Status])=3 Or ([S-Signings].[Signing
Status])=4 Or ([S-Signings].[Signing Status])=5) AND (([S-
Signings].Total_Fee)>0));"
dbs.Execute strUpdateDate
This SQL works fine when I run the actual query, but when
it is in the code, I get an "Expected Parameters 1"
Error. I know it is in the "Where" portion of the SQL
because when I take that out, it updates the date, but
only on the record that has focus. Please tell me why it
will not work in the code if you can, thanks.
within a recordset on several different records that meet
certain criteria. Here is the code:
strUpdateDate = "UPDATE [S-Signings] SET [S-
Signings].Client_Billed_Date = Date()" & _
"WHERE ((([Forms]![S-Signing Summary]![S-
Signings Subform].[Form]![Loan#])=[Loan#]) AND (([S-
Signings].[Signing Status])=3 Or ([S-Signings].[Signing
Status])=4 Or ([S-Signings].[Signing Status])=5) AND (([S-
Signings].Total_Fee)>0));"
dbs.Execute strUpdateDate
This SQL works fine when I run the actual query, but when
it is in the code, I get an "Expected Parameters 1"
Error. I know it is in the "Where" portion of the SQL
because when I take that out, it updates the date, but
only on the record that has focus. Please tell me why it
will not work in the code if you can, thanks.