Row Source for Combo Box

D

dhstein

I want to modify the row source for a combo box to limit the inputs

This is what I have right now:


SELECT [tblCategories].[ID], [tblCategories].[Category],
[tblCategories].[FirstEntry] FROM [tblCategories];

I want to only allow values where the ID is less than 20.

How would I change that SQL statement? Thanks for any help on this.
 
K

KARL DEWEY

Try this --
SELECT [tblCategories].[ID], [tblCategories].[Category],
[tblCategories].[FirstEntry] FROM [tblCategories] WHERE [tblCategories].[ID]
<20;
 
D

dhstein

Thanks Karl - that worked.



KARL DEWEY said:
Try this --
SELECT [tblCategories].[ID], [tblCategories].[Category],
[tblCategories].[FirstEntry] FROM [tblCategories] WHERE [tblCategories].[ID]
<20;

--
Build a little, test a little.


dhstein said:
I want to modify the row source for a combo box to limit the inputs

This is what I have right now:


SELECT [tblCategories].[ID], [tblCategories].[Category],
[tblCategories].[FirstEntry] FROM [tblCategories];

I want to only allow values where the ID is less than 20.

How would I change that SQL statement? Thanks for any help on this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top