Selecting dates on a calendar

Dave_cha

Registered User.
Local time
Today, 22:08
Joined
Nov 11, 2002
Messages
119
I have two forms, one with a date field (form1) and the second with a calendar displayed (Form 2).
I have created a button on form 1 which will open form 2 in pop-up mode. I would like a selected date, when clicked in form 2, to be inserted into the date field in form 1 and then for form 2 to close and return focus to form 1.
Would anyone be able to help me with the code in form 2?
The date field in form 1 is "date"
The Calander in form 2 is "Cal1"

Thanks, Dave
 
Have a look at this example, it has a little icon next to the field and a pop-up calendar.

My thanks to this forum where it was first posted ages ago.

Col
 

Attachments

you could try this one. By Mile-O-Phile. Just disect the calendar part of it. If I was able to do it anyone can.
 

Attachments

Thanks to both for your repies to this problem.
Chewy, I'm wondering if you could have a look at the attached file to see where I'm wrong. I'm hitting my head off a brick wall here. Thanks again, Dave
 

Attachments

redownload this one!!! The other one has stuff that wont work for you.
 

Attachments

or if you want your old one back...

What you did was change the ctlCalendar to Calandar
 

Attachments

Calander validation rule

Chewy,

I'm trying to put a validation rule on the popup calander which you sent me a while back. This would prevent users selecting a date which is date()-356.
I've trying applying the rule to the date destination field but the rule isn't enforced when you input the date using the popup calendar.
Any ideas?

Thanks,

Dave
 
Here you go...

Did you really mean 356 days before today or did you mean 365 (one year) and it was just a typo?

I fixed the calendar to disallow any date over a year old.
 

Attachments

Don't know what I'd do without this site and the help I get from you guys...thanks, Dave
 

Users who are viewing this thread

Back
Top Bottom