PC Review


Reply
Thread Tools Rate Thread

Access 2003 Rookie Question

 
 
=?Utf-8?B?a25vd3Nob3dyb3NlZ3Jvd3M=?=
Guest
Posts: n/a
 
      29th Mar 2007
I want to create a button on a form that will ask me to specifiy a date range
and then apply that date range to two seperate queries and give me both
results.

How do I begin to think about this?
--
Thanks
 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      29th Mar 2007
Start with a form that has two text controls. Use the labels to indicate
which will hold a start date, and which will hold an end date.

Create a query that returns data you want to see. Since you are describing
a "date range", one of the fields of data available must be a date field.
Use parameters in the Selection/criterion "cell" under that date field.
Your parameters will look something like:

Between Forms!YourForm!txtYourStart And Forms!YourForm!txtYourEnd

NOTE -- this approach will only work if the form is open, and the controls
have date values.

One more step -- in design view of the form, add a command button that opens
the query.

When you have this much working, work on the second query using the same
approach. Rather than add a second command button, consider adding the code
that opens the second query to the first command button.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"knowshowrosegrows" <(E-Mail Removed)> wrote in
message news:9228C75B-BA6F-4DBF-B1F4-(E-Mail Removed)...
>I want to create a button on a form that will ask me to specifiy a date
>range
> and then apply that date range to two seperate queries and give me both
> results.
>
> How do I begin to think about this?
> --
> Thanks



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rookie Question SteveB Microsoft Access Queries 1 7th May 2009 03:57 PM
Rookie question about Access 2003 =?Utf-8?B?Um9uIEdlaWxvdw==?= Microsoft Access Database Table Design 2 21st May 2007 02:30 PM
Rookie Question: Installing Outlook 2003 =?Utf-8?B?RVc=?= Microsoft Outlook Discussion 3 31st Mar 2007 01:45 AM
Access 2003 DCount Syntax Rookie =?Utf-8?B?a25vd3Nob3dyb3NlZ3Jvd3M=?= Microsoft Access Queries 4 28th Mar 2007 08:32 PM
Rookie Question Big E Microsoft ASP .NET 2 17th Jun 2004 06:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 PM.