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

How to create a report from a date range in a query?

30
I have managed to create a Report from a form that displays data per date

In the query criteria for the date it references the form

[Forms]![equipe_form]![Date de Vente]

The report is based on the results of the query as per the information entered in the form

so far so good

However, I want the user to be able to select a date range in the form - what do i enter in the query and how do i reference these to fields in the form
Jan 15 '11 #1
2 1774
RuralGuy
375 Expert 256MB
I prefer to use generic reports and apply a filter with the WhereCondition argument of the OpenReport command.
Jan 16 '11 #2
Jerry Maiapu
259 100+
Create two text boxes on your form.
Say 1 text box would be Startdate and 2 EndDate on your current form; equipe_form.

Now on your query:
Replace
Expand|Select|Wrap|Line Numbers
  1. [Forms]![equipe_form]![Date de Vente]
with
Expand|Select|Wrap|Line Numbers
  1. Between [Forms]![equipe_form]![Startdate] And [Forms]![equipe_form]![EndDate]
Jan 17 '11 #3

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

Similar topics

8
by: Donna Sabol | last post by:
First, I should start by saying I am creating a database to be used by some very impatient, non-computer literate people. It needs to be seameless in it's operation from their point of view. I...
2
by: Tony | last post by:
Hello everyone, Okay so here is my pickle! I have a field called ARCH_DATE within a table which has a date stored like "9/1/2004 23:50:00". What I would like to do is create a date range which...
1
by: mikevde | last post by:
Hi, I want to select data from a range of dates i.e over a 1 month period I've tried this: SELECT * FROM table WHERE DATE_SUB(Date(), INTERVAL 30 DAY) but the query isnt working as it is...
1
by: flumpuk | last post by:
Hi My job currently requires me to enter data from 300+ forms a month. The system which we used in Excel was slow , and theprevious guy had three workbooks for this job . I have created...
9
by: ckpoll2 | last post by:
Hello, I have a report that presents data based on a query that is built into the report. It asks for a start date and end date. When I type in 5/1/07 and 5/20/07, for example, there are no...
19
by: ali3n8 | last post by:
Hello I have attempted to create a date range report from a query called qrycustomerinformation. The field that contains the value of my date is called Followup. When i run a report on this it is...
12
smithj14
by: smithj14 | last post by:
I have a form to enter start and end dates then select a worker name to filter a report. This all works fine and when the report is open in preview mode it shows the date range in the txtboxes on the...
3
tuxalot
by: tuxalot | last post by:
I have a listbox showing reports, and when a report is selected, criteria (dates, employee name, etc.) necessary to print that report become visible. For a few reports, I would like to have the...
3
Claus Mygind
by: Claus Mygind | last post by:
My date calculation do not seem to work out. I have a list box with a character string value of dates ie: 03/28/2009. I want to create a date range for the week. So I would like to get the...
20
by: kujito | last post by:
I'm working with mine production data in Access 2007. I'll try to make this make sense and keep it simple (mostly to not confuse myself further). The range of years operating varies between...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.