PC Review


Reply
Thread Tools Rate Thread

Calender Control

 
 
=?Utf-8?B?QW50aG9ueWRhbjIwNg==?=
Guest
Posts: n/a
 
      3rd Mar 2006
I'm creating a program and want to stop dates being entered one week before
the current date and two months after the current date
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2hhcmtieXRl?=
Guest
Posts: n/a
 
      3rd Mar 2006
I'm not sure how you would control this with a calendar control, however, you
should be able to use the After Update event, of the field storing the data.

[txtDate1] Between (Date-7) and (Date + 60)

Sharkbyte


"Anthonydan206" wrote:

> I'm creating a program and want to stop dates being entered one week before
> the current date and two months after the current date

 
Reply With Quote
 
Tony Toews
Guest
Posts: n/a
 
      3rd Mar 2006
Sharkbyte <(E-Mail Removed)-> wrote:

>I'm not sure how you would control this with a calendar control, however, you
>should be able to use the After Update event, of the field storing the data.
>
>[txtDate1] Between (Date-7) and (Date + 60)


Trouble is 60 isn't exactly two months. I'd suggest using the
DateAdd function instead.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
 
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
Help with calender control =?Utf-8?B?Q2hyaXM=?= Microsoft ASP .NET 4 8th Dec 2004 04:57 PM
Calender Control K Crofts Microsoft Access 3 15th Jun 2004 01:10 PM
Calender Control =?Utf-8?B?SyBDcm9mdHM=?= Microsoft Access Forms 0 2nd Jun 2004 01:11 PM
Calender Control =?Utf-8?B?S2VycnkgQ3JvZnRz?= Microsoft Access VBA Modules 0 2nd Jun 2004 11:51 AM
Calender Control sal Microsoft Access Forms 1 19th Sep 2003 03:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 PM.