Combo Box expressions... Please help!

back2basic

Registered User.
Local time
Today, 17:39
Joined
Feb 19, 2013
Messages
113
Will anyone help with a explanation on how I can set up a expression to filter data in a combo Box?

I have a form "frmallocation" which has a combo box used to display data from a table of materials. I do not want to display records in the list if one of the fields "quantity" is equal to zero. The expression I use is the following in the validation rule property:

[materials]![Quantity] >0

Why does this not work???
 
Hello, Welcome to AWF.. :)

What is the Rowsource of the combo box you currently have?
 
Thank you, below is the row source:

SELECT [materials].[Material_ID], [materials].[Material_name], [materials].[Quantity] FROM materials ORDER BY [Material_name];
 
Try this..
Code:
SELECT [materials].[Material_ID], [materials].[Material_name], [materials].[Quantity] FROM materials WHERE [materials].[Quantity] > 0 ORDER BY [Material_name];
 
Wow, Thank you, two days of trial and error, you saved me a third. Amazing how far this program can go.
 

Users who are viewing this thread

Back
Top Bottom