Writing a Union Query in VBA

Bopo

New member
Local time
Today, 05:23
Joined
Dec 2, 2009
Messages
6
Hey Guys

I've tried to find an example of this, but sadly I haven't found one, therefore I'm questioning if it's actually possible.

Is it possible to merge the following two queries using a union, if so syntax wise how would you write it?

Code:
sqlQuery(0) = "UPDATE TblResource SET New = 'No' WHERE ResourceType = '" & Forms![SFrmSelectResources]![cboresources] & "'"
sqlQuery(1) = "UPDATE TblResourceType SET QuantityRemaning = '" & quantityLeft & "' WHERE ResourceType = '" & Forms![SFrmSelectResources]![cboresourcetype] & "'"

Thanks
 

Users who are viewing this thread

Back
Top Bottom