GaryCanuck
Technical User
I have this line of code to update certain values in a table. I'm getting the error that "there are too few parameters, expected 2". It's a little tricky but I can't spot the problem. Any help appreciated!
Code:
db.Execute "UPDATE [Properties] SET [Discharged?] = YES WHERE [Owner#] = (SELECT [ID] FROM [Owners] WHERE [Municipality] = (SELECT [ID] FROM Municipalities WHERE [ID] = getmunidischarge() AND [Municipalities_Status] = 'NTS Registered')) AND [Properties_Status] = 'Billed' AND [Discharged?] = NO"