I'm stuck on this SQL, it is saying that I am missing an operator and highlighting "Available". What I am trying to do is create this Update query in VBA, I need the field [TS] to update but only if the [Status] is "Available". Here's the full code below:
UPDATE attendance SET TS = " & iif [Status] = "Available" Then DMax("[TS]", "attendance") + 1 & " WHERE [userID]= " & rs!userID
I'm thinking I may not have this statement in the correct order.
+ 1though