473,406 Members | 2,745 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,406 software developers and data experts.

Using multiple queries for reports

Ok i am going to sound like the novice i am but i am hoping that someone will take pity on me and help me out.

Here is what i am trying to acheive:

I have a report that i need to run using a start and end date parameter based on many fields in a query (from a database), i can get it to run ok but because i am trying to look up different details from different fields i have to enter the same two dates about 8 times to run each query. Can i have a report run multiple queries by just entering one set of dates?

Hope that makes sense.

Thanks

David
Sep 3 '10 #1
4 1982
Deekay
21
This usually happens when thye query that the report is based upon can't find the dates anywhere and hence asks for the dates for each individual record.
The way round this is to have a small pop-up form unbound with asks for the dates. (call it say 'askdate' with two controls boxes to enter the dates - say first_date and second_date)
Then in the first criteria of the first date put (without the quotes marks) '=form!askdate.first_date'
and in the second '=Form!askdate.second date'.
This way you will only have to enter the dates once.

Deekay
Sep 3 '10 #2
That sounds like just the ticket, can i use the "And" Function? eg =Form!askdate.second date And =Form!askdate.second date. Will this also look up all fields within these two dates or just the ones entered into the fields.

Thanks again

David
Sep 3 '10 #3
beacon
579 512MB
If you have start date and end date as your two date fields, then you will have to enter the criteria in each of the fields.

So, under start date, you would enter
Expand|Select|Wrap|Line Numbers
  1. =Form!AskDate!StartDate
For the end date, you would enter
Expand|Select|Wrap|Line Numbers
  1. =Form!AskDate!EndDate
You would enter this into each start and end date field in every query that you want to be affected by the parameters.

Here's a link to a site that gives you the step by step on how to create a custom parameter dialog form: http://www.fontstuff.com/access/acctut08.htm
Sep 3 '10 #4
Right i think i have it, i will try it out and let you know if it has had the desired affect.

Thanks for your help

David
Sep 3 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Geoff Berrow | last post by:
This is puzzling. If I run $sql = "INSERT INTO customer (custid,username,password,title,firstname,lastname,street,towncity,postcode,telno,mobile,email,glasses) VALUES...
2
by: Jonathan LaRosa | last post by:
Hi all - I'm wondering if anyone has (or knows of) a tool that will allow me to search through VB code, tables, queries, reports, forms, and other objects, for references to all other types of...
3
by: matthewemiclea | last post by:
I am trying to display information in Access on a form that takes information from many different queries and puts them together on a spreadsheet or chart. Some specific info: The information I...
4
by: pcerio | last post by:
Hello All, Is it possible to have two different queries using parameters on the same report? Thanks. Trish
2
by: Eric | last post by:
I have an Access 95 database. This database has run for years and now is giving me a problem. When opened, the switchboard works fine and the database functions. However, when I close the...
4
by: tarafinlay | last post by:
Hi all, I am new to access and am finding it a bit unintuitive having worked with SQL server in the past... And I am in a bit of a hurry because my employer wants me to crank something out which...
8
by: beretta819 | last post by:
Ok, so I apologize in advance for the wordiness of what follows... (I am not looking for someone to make this for me, but to point me in the right direction for the steps I need to take.) I was...
3
by: markxxiv | last post by:
How can I send queries, reports, and perhaps forms for one database via email to a colleague who also has Access 2003 and the same database as the one I'm using to create these queries and reports? ...
7
by: vaiism | last post by:
I am creating a report that outputs the contact information and details about a water treatment plant, and needs to include information about people who work there. If I tie all the information...
0
by: John | last post by:
Hi I have created a drag and drop form a single table using vs2008. I have added several queries to the table adapter in Dataset designer. Is there any way for binding source to use relevant...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.