Visible property

This is a discussion on "Visible property" within the Databases section. This forum, and the thread "Visible property are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Databases

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 30th, 2003, 14:13
Junior Member
Join Date: Aug 2003
Location: USA
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Visible property

I have a "Report Dialog" form that is called when a report is opened. The "Report Dialog" has several parameter text boxes. Would like to set one or more of those boxes to "visible=false" depending on the report calling the "Report Dialog".

Currently using the code below to call the ReportDialog form:

Sub Report_Open(Cancel As Integer)
DoCmd.OpenForm "ReportDialog", , , , , acDialog

If Not IsLoaded("ReportDialog") Then
Cancel = True
End If

End Sub

Thanks

Ernest L. Kendricks

  #2 (permalink)  
Old Nov 5th, 2003, 18:22
Reputable Member
Join Date: Sep 2003
Location: USA
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
once you have the form open do this

The way you manipulate forms from another form is like this

after DoCmd.OpenFrom .... blah blah blah

type
Code: Select all
with Forms("FormName")
  if condition1 then
     .form.controlName1.visible = false
  elseif condition2 then
     .form.controlName2.visible = false
     .form.controlName3.visible = false
  end if
end with
You may want to use a SELECT CASE statement if there are several options. They are more efficient.

one thing to keep in mind is that these changes will be saved when the form is closed, so you either need to set all the controls to visible when you open the form, close the form, or in the above code.

jakyra
Closed Thread

Tags
visible, property

Thread Tools

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 On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make a div become visible on clicking a link? snappy Web Page Design 12 Jun 11th, 2008 19:25
flash video not visible when viewing in the Net balaakrs Flash & Multimedia Forum 1 Nov 6th, 2007 04:20
Flash visible in .dwt but invisible in .html cvele Flash & Multimedia Forum 7 Oct 15th, 2007 07:46
PR4 - Home Page - Hosting Site - Highly Visible Kirtan Link Building and Link Sales 1 Apr 29th, 2007 16:01
iFrame scroll not visible in IE chimp Web Page Design 1 Nov 17th, 2005 19:00


All times are GMT. The time now is 05:01.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43