Solved

Using SQL within VBA (based on combos)

Posted on 2014-02-24
2
231 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 39883737
0
 

Author Closing Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
File.Search issue 8 31
SQL Select in Access 2003 3 25
Signature required on a report 5 30
query linked sql table field from access 4 20
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

840 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