S
Sam Coburn
I'm getting too few parameters, Expected 1
I know it's in the syntax, but i haven't been able to figure it out. I
think the control reference in the IIF statement might be the problem. I've
tried adding " in different places...just haven't been successfull. Is the
first part of the IIF a string?
strSQL = "UPDATE Aptrh SET Aptrh.ActAmtToPay =
IIf([DiscDate]>=[forms]![frmAPInvDueBySelect]![txtSelectDate],[DiscAmt],[Amo
unt]) " _
& "WHERE (((Aptrh.Paid)=0));"
Set db = CurrentDb
db.Execute strSQL
Thanks for your help.
I know it's in the syntax, but i haven't been able to figure it out. I
think the control reference in the IIF statement might be the problem. I've
tried adding " in different places...just haven't been successfull. Is the
first part of the IIF a string?
strSQL = "UPDATE Aptrh SET Aptrh.ActAmtToPay =
IIf([DiscDate]>=[forms]![frmAPInvDueBySelect]![txtSelectDate],[DiscAmt],[Amo
unt]) " _
& "WHERE (((Aptrh.Paid)=0));"
Set db = CurrentDb
db.Execute strSQL
Thanks for your help.