FinsCukinac
New member
- Local time
- Today, 05:01
- Joined
- Sep 17, 2014
- Messages
- 4
EDIT: skip down to post#4. I've learned a thing or two since writing the initial post.
Here's what I'm trying to do:
I've got two different types of items: screws and foam. Each has a different kinds of characteristics, so each has its own table (tbl_screws and tbl_foam respectively).
I want to be able to track orders, receipts, and inventory of both kinds of items together (i.e. have a master list of all screws and all foam).
Here's how I've tackled it:
The primary key of tbl_screws and tbl_foam is a replication ID.
A UNION query (quni_allMaterial) joins the primary key and name from each table.
My inventory is tracked in tbl_inventory, which pulls from quni_allMaterial.
Problems:
When I view tbl_inventory and try to sort on the material field (the one that pulls from my UNION query), I get this error: "Syntax error in query. Incomplete query clause".
My question for you:
Is there a way around that syntax error?
Is there a better way to handle inventory of different item types? I'm open to all suggestions. I have a lot of leeway in restructuring my db.
Thanks!!
I've attached the example database.
Here's what I'm trying to do:
I've got two different types of items: screws and foam. Each has a different kinds of characteristics, so each has its own table (tbl_screws and tbl_foam respectively).
I want to be able to track orders, receipts, and inventory of both kinds of items together (i.e. have a master list of all screws and all foam).
Here's how I've tackled it:
The primary key of tbl_screws and tbl_foam is a replication ID.
A UNION query (quni_allMaterial) joins the primary key and name from each table.
My inventory is tracked in tbl_inventory, which pulls from quni_allMaterial.
Problems:
When I view tbl_inventory and try to sort on the material field (the one that pulls from my UNION query), I get this error: "Syntax error in query. Incomplete query clause".
My question for you:
Is there a way around that syntax error?
Is there a better way to handle inventory of different item types? I'm open to all suggestions. I have a lot of leeway in restructuring my db.
Thanks!!
I've attached the example database.
Attachments
Last edited: