A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Visible Question



 
 
Thread Tools Display Modes
  #1  
Old September 13th, 2008, 12:55 AM posted to microsoft.public.access
Bob Vance
external usenet poster
 
Posts: 726
Default 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  
Old September 13th, 2008, 01:51 AM posted to microsoft.public.access
fredg
external usenet poster
 
Posts: 4,386
Default 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  
Old September 13th, 2008, 02:03 AM posted to microsoft.public.access
Steve[_57_]
external usenet poster
 
Posts: 598
Default 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  
Old September 13th, 2008, 03:17 AM posted to microsoft.public.access
Bob Vance
external usenet poster
 
Posts: 726
Default 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

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:41 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.