Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-16-2005, 04:02 AM
maisam maisam is offline
Registered User
 
Join Date: Oct 2005
Posts: 15
maisam is on a distinguished road
Question Problem making a label visible in a subform! URGENT - Please HELP!!!

Hi guys,

I have a form (frmMain) which contains 3 subforms and they are being set to visible at different stages of application run (depending on the options selected).

In subfrm_Main_options i have 3 buttons, clicking on 'Job Review' will make the subfrm_Search visible. In the subfrm_Search i have 2 labels, 'View Jobs' and 'View Report' and I only want the 'View Jobs' to be visible!

I have tried setting the visible property of this label to False in the subfrm_Main_Options but its giving me an error (saying the form subfrm_Search is closed or does not exist in the database!). I also tried using a Global Variable (ViewJobs - declared in module mdlPublicVars) and set it to True once the 'Job Review' is clicked in the subfrm_Main_Options form, and then look at this in subfrm_Search and then display the correct label. However after trying to put this code in various events such as, On Open, On Got Focous, On Activation, ... i didnt get the result i wanted!

Can any1 please help me out with this. I would be really grateful!

PS. The buttons appearing on the form are placed on the frmMain, I did that to see if it appears on the main form but they must be in subfrm_Search!

The database is attached!

Thanks, Maisam
Attached Files
File Type: zip 15-11-05_2ndVesion-EIAHandback.zip (41.2 KB, 21 views)
Reply With Quote
Sponsored Links
  #2  
Old 11-16-2005, 11:48 AM
edtab edtab is offline
Registered User
 
Join Date: Mar 2002
Location: Toronto, Ontario, Canada
Posts: 243
edtab
In the OnLoad event of the subform_search, place this code:

Private Sub Form_Load()
Me.lblViewReport.Visible = False
End Sub
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Blank subform problem pd06498 Forms 2 07-27-2004 04:48 PM
Subform problem with VBA code execution IanMilly Forms 5 06-29-2004 10:19 AM
Problem on Subform StefanSch Forms 1 04-05-2003 09:31 AM
Subform problem libby32 Forms 1 03-17-2003 08:22 AM
Subform problem aporkalypse_now Forms 1 03-28-2002 09:00 AM


All times are GMT -8. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World