Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating combo box with query results

Status
Not open for further replies.

Cads

Technical User
Jan 17, 2000
40
GB
In an Access 97 database,I have a form with a combo box which I populate with one of two queries at run-time. Both queries are parameter queries and the query which runs is decided by which button I click in an option group.

If I run both queries outside of the form (ie as straight queries) they work fine and give me the subset of records relating to the parameter. If I run them within the form, and the number of records is 50+, one query gives me the full subset in the combo box (at least up to 200 records)but the other only gives me the first 50 records or so. I use VBA to indicate which query should run (....Recordsource = qry... etc), otherwise the coding is identical. Any ideas welcome, please.

Steve House
shouse@icaew.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top