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

Creating a Form with a Date Range

Hallo All,

This is a Tool i m tryin to develop at work.

I will explain how it works and then the Q

I download a report from my ERP Tool on a daily basis and upload it into the Access Tool. This report gives me the accounting bookings made on a daily basis. So it has fields like Invoice Nr, Invoice Amount, and Date.

Well, then i have a Duplicate Query set up to give me a report for all Duplicates...and then i download it into an excel. This excel table, i auto-filter it as of Today's date/specified date and view the Duplicate Bookings for Today/specified date.

Now this is a Tedious task and everyday i get the same dump + Today's duplicates, (if any).

Now, this is what i want to Develop : I want to have a form, where i can specify the date or date range from this Duplicate Query and then pull out the Duplicate report for the specified Date/Date Range.

So that i can save up on my disk space while saving these files.

Please help !

Thanks
Feb 23 '07 #1
1 3927
Hallo All,

This is a Tool i m tryin to develop at work.

I will explain how it works and then the Q

I download a report from my ERP Tool on a daily basis and upload it into the Access Tool. This report gives me the accounting bookings made on a daily basis. So it has fields like Invoice Nr, Invoice Amount, and Date.

Well, then i have a Duplicate Query set up to give me a report for all Duplicates...and then i download it into an excel. This excel table, i auto-filter it as of Today's date/specified date and view the Duplicate Bookings for Today/specified date.

Now this is a Tedious task and everyday i get the same dump + Today's duplicates, (if any).

Now, this is what i want to Develop : I want to have a form, where i can specify the date or date range from this Duplicate Query and then pull out the Duplicate report for the specified Date/Date Range.

So that i can save up on my disk space while saving these files.

Please help !

Thanks
I assume you are trying to omit exporting your Duplicate report to Excel and run it all in Access? If so:

You will have to create an unbound form with two fields for the first date of the date range and the last date of the date range. In your Duplicates query you will then set the criteria of the Date field to be between the two dates on your form. I set the Visible property of the form to No so you can't see it while you're viewing your Duplicates Query. If you view the results of the Duplicates Query in a form or report rather than just a query, you can also create a macro which closes the unbound date range form when you close the Duplicates Query form or report. Here are the steps:


Create an unbound form by clicking New Form and Design View. We'll name it DuplicatesDateRange.
Add two new text fields, call them FirstDate and LastDate.
Add a button with the OnClick performing the following macro, named DuplicatesGo:
SetValue, Forms![DuplicatesDateRange].Visible , No
OpenForm, DuplicatesQueryForm (which you will need to create)

In the Duplicates Query, for the Date criteria, enter Between Forms![DuplicatesDateRange]![FirstDate] And Forms![DuplicatesDateRange]![LastDate]

On the DuplicatesQueryForm, create a button with the OnClick performing the following macro, named CloseDuplicatesQueryForm:
Close, Object Type=Form, Object Name=DuplicatesQueryForm, Save=No
Close, Object Type=Form, Object Name=DuplicatesDateRange, Save=No

I hope this helps.
Feb 23 '07 #2

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

Similar topics

5
by: Mal | last post by:
Hello. I have a database that tracks reservations at a campground. I want to be able to make a calendar type report that shows how many people are here in given period. Stored for each...
1
by: John Phelan-Cummings | last post by:
When I add the name of a new individual in a, bound form, it will not display that person’s name in a label control of a second unbound form. I have a scheduling program that I am working on. ...
0
by: Stinky Pete | last post by:
Hi, The db I'm trying to update has a report form from which all other statistical forms and reports are selected/printed by dept, type, cost, number etc. The report form uses a date filter to...
1
by: isetea | last post by:
Hi, I want to create a from where user can select from a date range / type in a date range to get only data from an underlying query within this range. This should overwrite the existing criteria...
2
blyxx86
by: blyxx86 | last post by:
I am very new to Access, and have only been using it for a month now. I have learned how to do a lot of things, but have been having problems making a form update a query that then is sent to a...
4
by: fredindy | last post by:
Hope the subject is sufficient. Here is what is going on. I need to create a form that will display data within a date range... no biggie. However, I'd like to keep it as close to the example...
4
by: Jimmy | last post by:
Quick question for you. I'm using a small form for users to input a range of dates for a report (similar to the date range forms used in MS templates) that has an ok and a cancel button. How can I...
4
Sandboxer
by: Sandboxer | last post by:
I want to be able to program Access to provide for me, by individual day, what my contract obligations are to my customers. Will Access recognize all the individual days in between a date range...
3
Jerry911
by: Jerry911 | last post by:
I have a form that uses a pick list to select a specified date/time range based on the case value. Case 1-7 have pre-defined date/time functions, but case 8 is for a custom date/time range. I only...
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: 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.