Solved

Using SQL within VBA (based on combos)

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Familiarize people with the process of utilizing SQL Server functions 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 Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

747 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

12 Experts available now in Live!

Get 1:1 Help Now