If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Visible Question
Is it Possible that a label [lblCantEdit] on my form will become visible if [tbDate] is 90 days Old -- Thanks in advance for any help with this......Bob WindowsXP..MS Access 2007 |
#2
|
|||
|
|||
Visible Question
On Sat, 13 Sep 2008 11:55:01 +1200, Bob Vance wrote:
Is it Possible that a label [lblCantEdit] on my form will become visible if [tbDate] is 90 days Old Place the following code in BOTH the form's Current event as well as the [tbDate] control's AfterUpdate event: Me![lblCantEdit].Visible = DateDiff("d",[tbDate],Date()) = 90 -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail |
#3
|
|||
|
|||
Visible Question
How about the following code in the Open event of your form ....
If Me!tbDate = DateAdd("d",-90,Date()) Then Me!lblCantEdit.Visible = True Else Me!lblCantEdit.Visible = False End If I am assuming lblCantEdit is not part of a continuous form. Steve "Bob Vance" wrote in message ... Is it Possible that a label [lblCantEdit] on my form will become visible if [tbDate] is 90 days Old -- Thanks in advance for any help with this......Bob WindowsXP..MS Access 2007 |
#4
|
|||
|
|||
Visible Question
Thanks Fred, worked perfectly ...Regards Bob
"fredg" wrote in message .. . On Sat, 13 Sep 2008 11:55:01 +1200, Bob Vance wrote: Is it Possible that a label [lblCantEdit] on my form will become visible if [tbDate] is 90 days Old Place the following code in BOTH the form's Current event as well as the [tbDate] control's AfterUpdate event: Me![lblCantEdit].Visible = DateDiff("d",[tbDate],Date()) = 90 -- Fred Please respond only to this newsgroup. I do not reply to personal e-mail |
Thread Tools | |
Display Modes | |
|
|