473,397 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

How to run queries on a subset of records in a table?

I have inherited a complex database that has many dozens of queries that derive data from a people
table.

I now need to be able to run these queries (from within a significant number of forms) not on the
full dataset, but on a subset of the data in the people table.

I want to avoid having to put criteria in all of the individual queries or forms, or having to
change the data source for all the queries.

Is there anyway I can restrict the recordset without having to modify all the queries individually?
Nov 12 '05 #1
1 2295
Consider a query by form (QBF). The QBF is a form in which you can enter
multiple variable parameters that are sent to your queries when the queries
are activated. The QBF is an unbound form with unbound text boxes on it
that are used to supply parameters to the queries. Multiple queries can be
fed off this form. The queries refer to the unbound controls/text boxes on
the QBF by there names so that when you fill the text boxes and activate the
queries, then the queries are filtered by whatever was placed in the text
box(es). In the criteria rows of your queries, you would place expressions
similar to this: [Forms]![frmNameOfUnboundForm]![txtNameOfUnboundTextBox]

Denny G


"Roger Green" <rc*****@mun.caNOJUNK> wrote in message
news:bj**********@coranto.ucs.mun.ca...
I have inherited a complex database that has many dozens of queries that derive data from a people table.

I now need to be able to run these queries (from within a significant number of forms) not on the full dataset, but on a subset of the data in the people table.

I want to avoid having to put criteria in all of the individual queries or forms, or having to change the data source for all the queries.

Is there anyway I can restrict the recordset without having to modify all the queries individually?

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: agron | last post by:
Hi, I was wondering if you guys have any nth script to reads from table and outputs into a temp table subset of records. There was a nth tool I used to use it was GROUP1 which was written in C...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
1
by: Robert Neville | last post by:
The solution to my dilemma seems straight-forward, yet my mind has not been forthcoming with a direct route. My Project form has a tab control with multiple sub-forms; these distinct sub-forms...
3
by: Stephen | last post by:
It is possible to relate queries to tables, right? It seems logical but when I try to match my queries to any of the tables or even to each other it gives me a blank relationship. What could I...
3
by: Kenneth | last post by:
I have 3 different tables that I want Queries to sum up, but I do not get all the information into my Queriy-file. The 1st table have 9 different products. The 2nd table have 3 of those 9...
6
by: geronimo_me | last post by:
I have 20 queries that compare fields in one table with fields in another table - the query results are the records that do not match in Table1 and Table2. ie Table1 DOB 28/02/78 Table2 DOB...
4
by: Got2Go | last post by:
Hello Group, I have a table that has millions of records in it. About 100 records are added every 5 minutes (one per OIDID) (the sample provided below has data for 2 OIDIDs (99 and 100) And I...
2
by: zwasdl | last post by:
Some of my queries take 1 hour to run, can I run other queries in access while waiting on the first query? If so, how can I do it? Thanks a lot, Wei
16
by: ARC | last post by:
Hello all, So I'm knee deep in this import utility program, and am coming up with all sorts of "gotcha's!". 1st off. On a "Find Duplicates Query", does anyone have a good solution for...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.