Results 1 to 2 of 2
  1. #1
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159

    Make subform control invisible depending on value in mainform.

    Hello everybody,

    I want to make a control on a subform invisible depending on the value that's in one of the boxes on a mainform.

    I had this behind the on change event of the mainform. Doesn't work though. Boo!



    Dim cc_ID As Integer

    cc_ID = [Forms]![frmFN_FilesBox]![fkCostCentre_ID]

    If (cc_ID = 2) Then

    Me![subform].form.cboDesc.Visible = False

    End If

    Rich.


    -----------------------------------------------------

  2. #2
    Richie27 is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2012
    Location
    Ireland
    Posts
    159
    oh lord. there was nothing wrong with my code as such. Just used a wrong name for control.

    Thank crunchy it's Friday!!!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 03-30-2012, 01:47 AM
  2. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  3. Replies: 1
    Last Post: 10-05-2011, 04:36 PM
  4. Replies: 3
    Last Post: 06-20-2011, 09:30 AM
  5. Replies: 10
    Last Post: 12-31-2010, 12:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums