Advertisement

06.19.2008 at 05:45AM PDT, ID: 23498572
[x]
Attachment Details

Need help manipulating ListRows in Combo Control

Asked by MitchellVII in Access Coding/Macros, Microsoft Access Database, Microsoft Visual Basic.Net

Hi,

I have a multitude of Combo Controls that I use throughout my database.  They are usually based upon a query of some sort.

What I would like to do is have a Function that fires when the Combo is open that does the following:
1. Counts the records resulting from the underlying query (.rowsource).
2. Up to a maximum of 20 rows, dynamically change the ListRows # to reflect the number of records in the .rowsource.

This way, up to 20 records, my combos would always show the full result with no scroll bars (which is desirable).

Thanks!Start Free Trial
[+][-]06.19.2008 at 05:58AM PDT, ID: 21821661

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Coding/Macros, Microsoft Access Database, Microsoft Visual Basic.Net
Sign Up Now!
Solution Provided By: jppinto
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.19.2008 at 06:10AM PDT, ID: 21821741

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628