Solved

Using SQL within VBA (based on combos)

Posted on 2014-02-24
2
227 Views
Last Modified: 2014-02-24
Hi,

See attached.
This is a simplified version of my requirement.

I have a table with thousands of records and wish to "count" the records that match the criteria chosen by the combos.   E.g. choose "Gender=M" and "Personality=NICE".  How many people match these criteria?

This is best explained by looking at the attached.

What I Need:  When the user clicks "Count The Chosen" the system should display a msgbox that show how many records met the criteria.
GenerateLetters.accdb
0
Comment
Question by:Patrick O'Dea
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39883737
0
 

Author Closing Comment

by:Patrick O'Dea
ID: 39883763
Thanks , just perfect!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now