Hello~
Just a quick question about Access Reports.
I want to have a form for user where they will have two textbox and one combo box to pick from and run the query based on that.
1 txtbox is for start date
2 txt box is for end date
and combo box is for to pick the person name
I want to run a query/report when user puts start date and end date and run the report by Location Type, and also another query/report when they pick the person name and run by location and by the start date and end date.
I hope i explained well..if not..plz let me know i will try to explain better.
tblIntervention s is the table name
txtstartdate
txtenddate
cmbboxnames
Thx
6 1430
Hello~
Just a quick question about Access Reports.
I want to have a form for user where they will have two textbox and one combo box to pick from and run the query based on that.
1 txtbox is for start date
2 txt box is for end date
and combo box is for to pick the person name
I want to run a query/report when user puts start date and end date and run the report by Location Type, and also another query/report when they pick the person name and run by location and by the start date and end date.
I hope i explained well..if not..plz let me know i will try to explain better.
tblIntervention s is the table name
txtstartdate
txtenddate
cmbboxnames
Thx
can anyone help me out please???
thx
Have you tried building a query yet?
The WHERE criteria for dates is generally a little tricky, in the design view grid you put something like this:
>="#" & Forms![YourFormName]![TextStartDate] & "#"
<="#" & Forms![YourFormName]![TextEndDate] & "#"
Get a query started, then if you run into troubles, post back here with the full sql of the query that you are using, and we'll take a look!
Regards,
Scott
Have you tried building a query yet?
The WHERE criteria for dates is generally a little tricky, in the design view grid you put something like this:
>="#" & Forms![YourFormName]![TextStartDate] & "#"
<="#" & Forms![YourFormName]![TextEndDate] & "#"
Get a query started, then if you run into troubles, post back here with the full sql of the query that you are using, and we'll take a look!
Regards,
Scott
Thanks for your reply.
I am not how to start on this task. I have never done something like that.
I want to create a form where user can put StartDate and EndDate and report will generate based on the dates.
For example i want to create a query by location between some dates.
thats all i have so far, but i am not sure if i am on the right track. -
Select Count(Location) As CountofLocation from tblInterventions
-
where Datefld>=txtStartDate and <==txtEndDate;
-
-
Thanks for your reply.
I am not how to start on this task. I have never done something like that.
I want to create a form where user can put StartDate and EndDate and report will generate based on the dates.
For example i want to create a query by location between some dates.
thats all i have so far, but i am not sure if i am on the right track. -
Select Count(Location) As CountofLocation from tblInterventions
-
where Datefld>=txtStartDate and <==txtEndDate;
-
-
You may not need the form... A parameter query might work just as well.
Create a new query in design view. right click and show the table tblIntervention s. Double click your Location field and your Datefld. Now right click again, and choose the Parameters option. Create two new parameters Called [Start Date] and [End Date], give them Date/Time properties.
After closing the Parameter dialog box, place this in the Criteria grid box below your Datefld: Between [Start Date] And [End Date]
Save and test!
Regards,
Scott
You may not need the form... A parameter query might work just as well.
Create a new query in design view. right click and show the table tblIntervention s. Double click your Location field and your Datefld. Now right click again, and choose the Parameters option. Create two new parameters Called [Start Date] and [End Date], give them Date/Time properties.
After closing the Parameter dialog box, place this in the Criteria grid box below your Datefld: Between [Start Date] And [End Date]
Save and test!
Regards,
Scott
Scott,
what should I put under Criteria Grid box?
Do i put the phsicall dates? or the query?
please let me know.
Thx
After following the other instructions I gave put this in the Criteria Grid box.
Between [Start Date] And [End Date]
Regards,
Scott
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Simon Bailey |
last post by:
How do you created a query in VB?
I have a button on a form that signifies a certain computer in a
computer suite. On clicking on this button i would like to create a
query searching for all details invovling that computer, for the user
to then view.
Any ideas on some code?
Many thanks for any help.
|
by: longtim |
last post by:
I have been having endless difficulty creating reports/queries that
set any relevent parameters from controls in forms.
I am creating an application under access 2003 but will target access
2000. The access file is in access 2000 format.
I have a form that will hold the relevent parameters for the
query/report that reports the statistics...
|
by: google |
last post by:
I have a database with four table. In one of the tables, I use about
five lookup fields to get populate their dropdown list. I have read
that lookup fields are really bad and may cause problems that are hard
to find. The main problem I am having right now is that I have a report
that is sorted by one of these lookup fields and it only displays...
|
by: amith.srinivas |
last post by:
Hi all,
From a word macro in VBA, I am trying to create a report in
access DB. The report is based on a query with a parameter. I am using
Set rpt = Application.CreateReport
rpt.RecordSource = <<Query_Name>>
Once I create the report, I m trying to create labels to display the
Report title in the Report Header section.
|
by: L. R. Du Broff |
last post by:
I own a small business. Need to track a few hundred pieces of rental
equipment that can be in any of a few dozen locations. I'm an old-time C
language programmer (UNIX environment). If the only tool you know how to
use is a hammer, every problem tends to look like a nail. That said, I
could solve my problem in C, but it's not the right...
| |
by: Bill |
last post by:
I have a 200 record database that includes a date/time field,
AnnivDate, for a wedding anniversary. AnnivDate has nulls and some
incorrect year data. I have been creating the Access database using
data imported from an Excel file and the person entering into Excel
only cared about the month and day portion and Excel added the current
year...
|
by: themastertaylor |
last post by:
Hi, I work for a construction company and part of my job is sourcing
materials. currently we have a spreadsheet based system whereby each
site has a worksheet in the workbook with the standard types of stone
in the first column, then across the top we have the main 6 or 7
suppliers and input their price for each material into the grid.
I...
|
by: access baby |
last post by:
i have a huge database based on date and time need to create
different report we need to measure our work processes how many order
received , order cancelled, completed and count of items completed on
or before time.
chart or pivot report how do i do that.
Please help.
|
by: mskapek |
last post by:
I need some advise on how to best create an Access 2002 report from multiple "total" queries, each which result in 3- 5 values that I need displayed on my report. Most of the queries do simple counts based on 3 different tables. For instance, I need to count the number of new clients enrolled in a program for a given month or year-to-date...
|
by: LadyIlsebet |
last post by:
I'm not a fantastic Access developer, but I'm trying to help get
Inventory and whatnot organized at work. They are used to 5 year
budget plans that list out exactly what has to be purchased what year
and how much it will cost. Currently these are kept in Excel and look
like this
| Inventory information (who, what, where) | 2008 | 2009 |...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |