adammorrisey
New member
- Local time
- Today, 09:10
- Joined
- Nov 20, 2012
- Messages
- 8
Hey guys, I'm trying to add some SQL to a button click subroutine in VBA, but I'm not really sure how to use SQL in VBA, esspecially an UPDATE or an INNER JOIN operation. So I was wondering if someone here can help me or even write out what I need to put in my subroutine.
Here is my SQL statement:
UPDATE INVENTORY INNER JOIN SIGN_OUT ON
INVENTORY.Inventory = SIGN_OUT.InventoryID
SET INVENTORY.StatusID = 0;
Purpose of this sql statement is that when you sign a tool out using a form, its sets the corresponding tool in the inventorys status id value to 0 (not available).
If you need anything else let me know, thanks!
Here is my SQL statement:
UPDATE INVENTORY INNER JOIN SIGN_OUT ON
INVENTORY.Inventory = SIGN_OUT.InventoryID
SET INVENTORY.StatusID = 0;
Purpose of this sql statement is that when you sign a tool out using a form, its sets the corresponding tool in the inventorys status id value to 0 (not available).
If you need anything else let me know, thanks!
Last edited: