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

Access Date Range

For a Medical Chart Audit database, I need to require the user to choose a "From" date and a "To" date
Nov 15 '06 #1
5 3269
NeoPa
32,556 Expert Mod 16PB
Oh good ?!?

Give us a clue as to the question?
Nov 15 '06 #2
Oh good ?!?

Give us a clue as to the question?
I need to develop a report which will give the user a compliance rate for provider completion of various things on a medical chart. i.e "provider signature on a treatment plan for a patient." Chart Review auditors will input the results of their chart audits into a database that I developed. They need a report which will give them a completion rate % for individual providers or categories of chart items -
within a specified date range. So that when they click on the repot, they will be prompted by a message box that asks for the Beginning DATE AND THE ENDING DATE OF THE PERIOD THEY WISH TO INQUIRE ABOUT.

I hope that helps a little.
Thanks,
Nov 15 '06 #3
Killer42
8,435 Expert 8TB
I need to develop a report which will give the user a compliance rate for provider completion of various things on a medical chart. i.e "provider signature on a treatment plan for a patient." Chart Review auditors will input the results of their chart audits into a database that I developed. They need a report which will give them a completion rate % for individual providers or categories of chart items -
within a specified date range. So that when they click on the repot, they will be prompted by a message box that asks for the Beginning DATE AND THE ENDING DATE OF THE PERIOD THEY WISH TO INQUIRE ABOUT.

I hope that helps a little.
Thanks,
At the simplest level, a query can prompt for parameters by including things like...

SELECT * FROM <table> WHERE <Field> Between [Enter the FROM Date] And [Enter the TO Date];

This will cause two dialogue boxes to pop up when the query is executed, prompting "Enter the FORM Date" and so on.
Nov 15 '06 #4
NeoPa
32,556 Expert Mod 16PB
A typical way to do this is have a form with TextBoxes (or in this case maybe even Calendar controls) in which the operator can select the dates.
On the click of a button that you add to the form, the code behind the button executes a call to run the report. One of the parameters to this is a WhereCondition to be applied. Here you would enter the SQL code to filter by the dates on your form.
OpenReport Method
The OpenReport method carries out the OpenReport action in Visual Basic.

expression.OpenReport(ReportName, View, FilterName, WhereCondition, WindowMode, OpenArgs)
expression Required. An expression that returns a DoCmd object.

ReportName Required Variant. A string expression that's the valid name of a report in the current database. If you execute Visual Basic code containing the OpenReport method in a library database, Microsoft Access looks for the report with this name, first in the library database, then in the current database.

View Optional AcView. The view to apply to the specified report.

AcView can be one of these AcView constants.
acViewDesign
acViewNormal default Prints the report immediately.
acViewPivotChart Not supported.
acViewPivotTable Not supported.
acViewPreview

FilterName Optional Variant. A string expression that's the valid name of a query in the current database.

WhereCondition Optional Variant. A string expression that's a valid SQL WHERE clause without the word WHERE.

WindowMode Optional AcWindowMode. The mode in which the form opens.

AcWindowMode can be one of these AcWindowMode constants.
acDialog The form's Modal and PopUp properties are set to Yes.
acHidden The form is hidden.
acIcon The form opens minimized in the Windows taskbar.
acWindowNormal default The form is in the mode set by its properties.

OpenArgs Optional Variant. Sets the OpenArgs property.
You would typically use
Expand|Select|Wrap|Line Numbers
  1. DoCmd.OpenReport(...)
Nov 16 '06 #5
At the simplest level, a query can prompt for parameters by including things like...

SELECT * FROM <table> WHERE <Field> Between [Enter the FROM Date] And [Enter the TO Date];

This will cause two dialogue boxes to pop up when the query is executed, prompting "Enter the FORM Date" and so on.
THANKS. PROBLEM SOLVED
SIMPLE IS GOOD. I WILL CALCULATE THE %'S U7SING OTHER QUERIES.
SORRY TO SOUND SO STUPID.
Nov 16 '06 #6

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

Similar topics

0
by: rdemyan via AccessMonster.com | last post by:
I have a need to highlight a date range in a bar chart. If the "highlighting" is accomplished by changing the bar column color for the specific months in the date range, that would be great. ...
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...
7
by: dozingquinn | last post by:
Hello, Is there any way to auto populate the user defined date range into a report? I currently have the criteria "Between And " for a date range field. This prompts the user to enter a date...
8
by: mintz87 | last post by:
i have a table that has a beg_date & end_date (3/1/1985 & 3/1/1990) how do i, in access, break out this date range into another table by month. since this date range is a 60 month range it would...
3
by: Deano | last post by:
The short version; In short, given one date range (start and end dates) how can I find the period that overlaps with another date range? The long version; I have knocked up a little application...
19
by: phill86 | last post by:
Hi I am re-posting this thread because it has become very confusing and I have got some way to solving the problem so it is a slightly different question from the initial thread. here is the...
0
by: cheli198201 | last post by:
I'm totally new at this... please be patient with me. I have Access 2007 and I'm working on form where I have multiple date fields associated with each record. For example: Name: ...
1
by: cheli198201 | last post by:
I'm totally new at this... please be patient with me. I have Access 2007 and I'm working on form where I have multiple date fields associated with each record. For example: Name: ...
3
by: Vinda | last post by:
Hi Bytes, Using a previous question as a base Access 2000 Inserting multiple rows based on a date range. I also wanted to insert multiple rows into a table according to a date range supplied by a...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
agi2029
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,...

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.