Hi Guys,
I'm creating a stock monitoring database.
in this database you have 3 relevant tables:
OutboundStock
Products
Customers
the one bit im struggling with?
In Products:
[ID](PK) [ProductRange] [ProductName]
theres only 3 ranges, but 50+ products in each range.
So, if i create a lookup field through the wizard, the result = dropdown field in table, when clicked, shows 50x range.
What im trying to achieve is, the lookup box shows the 3 available ranges.
once [ProductRange] is selected, the [ProductName] Field, then limits the list down to products available in the range selected.
I created a lookup box through wizard, and just entered the 3 ranges myself, and then i tried to build an SQL code, for the [ProductName] Column:
SELECT [Products].[ID], [Products].[SlabName] FROM [Products] WHERE [Products].[ProductRange] = [OutboundStock].[SlabRange] ORDER BY [SlabName];
Apparently, the Syntax is incorrect. (i have no idea about SQL) is anyone able to advise what is wrong here, or suggest an alternative please?
Please note: i am trying to accomplish this in a TABLE not a Query