473,385 Members | 1,402 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,385 software developers and data experts.

Date Parameter

Presto731
I have a paremeter query that asks for a date. Is there way to have a calendar pop up instead of the parameter dialog box?
Jul 17 '07 #1
5 3148
puppydogbuddy
1,923 Expert 1GB
I have a paremeter query that asks for a date. Is there way to have a calendar pop up instead of the parameter dialog box?
Yes, see this link for a calendar that is developed using an Access form. A native access form is preferable to an activeX calendar for the reasons stated in the link. The link also has step by step instructions for setting up the calendar form in your application.

http://allenbrowne.com/ser-51.html
Jul 17 '07 #2
Awesome, Thanks for the help!


Yes, see this link for a calendar that is developed using an Access form. A native access form is preferable to an activeX calendar for the reasons stated in the link. The link also has step by step instructions for setting up the calendar form in your application.

http://allenbrowne.com/ser-51.html
Jul 17 '07 #3
I have a parameter query that asks for Start Date and End Date before running. I'd like this calendar to pop up so the user does not have to manually enter the dates.

How do I point the query at the calendar form? I know I have to build an expression in the criteria, but I've no clue how to use the "Between..And.." phrase to direct it to the calendar. Also, do I need to make any changes to the properties of the Calendar?

I'm using the calendar from the link above. Any help is appreciated.

Thanks,
PT
Aug 9 '07 #4
puppydogbuddy
1,923 Expert 1GB
I have a parameter query that asks for Start Date and End Date before running. I'd like this calendar to pop up so the user does not have to manually enter the dates.

How do I point the query at the calendar form? I know I have to build an expression in the criteria, but I've no clue how to use the "Between..And.." phrase to direct it to the calendar. Also, do I need to make any changes to the properties of the Calendar?

I'm using the calendar from the link above. Any help is appreciated.

Thanks,
PT
Complete instructions for the calendar are contained in the link. The calendar comes with several options to choose from (like first day of the week) so you will have to set the property sheet for the options you want to change.

The calendar is opened by a command button that is tied to a particular text box (txtStartDate, txtEndDate). You would have 2 buttons, one for each textbox. So the date selected is read from/written back to the applicable textbox control on your form.

Your query would look something like this:
Expand|Select|Wrap|Line Numbers
  1. Select * From Your Table 
  2. Where [your datefield] Between Forms!YourForm!txtStartDate And Forms!YourForm!txtEndDate
Aug 9 '07 #5
Got it! Works great now.

I didnt understand that it needed to pull from the text boxes.

Thank you!
Aug 9 '07 #6

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

Similar topics

5
by: Dominique Javet | last post by:
Hello, I'm new to php and mysql and I use Dreamweaver MX 2004, so sorry for this "newbie" question... I've found no answer in the forum ... I've a date problem with my formular. In my mysql DB...
4
by: Tony | last post by:
Hey guys, I use Google Groups quite a bit as it is an enormous wealth of information, and now I need some help. I have created a query using parameters to capture a range of date, the date is...
10
by: John Morgan | last post by:
Does anyone know what parameter should be used instead of Date = 0 for the optional parameter in the following function? Public Function dhAge(ByVal dtmBD As Date, Optional ByVal dtmDate As Date...
11
by: Lauren Quantrell | last post by:
I already figured out (the hard way) I need to convert all my date parameters into USA format before executing my stored procedures where dates are used as parameters. (Format(StartDate, "m/d/yyyy...
12
by: Rob Meade | last post by:
Hi all, Ok - I've come from a 1.1 background - and previously I've never had any problem with doing this: Response.Write (Session("MyDate").ToString("dd/MM/yyyy")) So, I might get this for...
2
by: sixdeuce62 | last post by:
Hello, I am trying to create a query that will prompt me to enter the parameter value if beginning date and ending date. I have created everything I need in the query, but I have to manually go...
7
by: =?Utf-8?B?U3R1?= | last post by:
I have a ASP.NET Ajax app (using client library) calling ASP.NET Ajax-enabled web services. We are making use of the javascript proxies generated by ASP.NET Ajax. The problem we have is that the...
4
by: davide507 | last post by:
Hello, I've created a select query with a date range parameter as well as a text field parameter Between and The second parameter: Like or Like Is Null. When you run the query, and...
0
by: jans78 | last post by:
Appreciate if you all can help me to solve my Crystal Report problems First, I create some parameters and one of the parameters is Date. I set the parameter for the date is String. For example :...
2
by: Kerryn | last post by:
Hi all new to this site so looking for some help. I am working in Access 2002, using a select query. I am trying to use a date range parameter to allow the users to end the start date and end...
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...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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...

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.