Results 1 to 4 of 4
  1. #1
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    global function (Access 2000)

    Is there any way to rationalize my function enumerating successive controls? The function is as follows
    If Me![office] = 1 Then
    Me! [brancho].Visible = true
    Else If Me![office] = 2 Then
    Me![branch1].visible = True

    ElseIf Me![office] = 21 Then
    Me!branch20].Visible = True
    End If

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: global function (Access 2000)

    Me.Controls("Branch" & (Me.Office - 1)).Visible = True

  3. #3
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: global function (Access 2000)

    Thank you for the reply. On trying i get the message " Object doesnt support this property or methd, runtime error 438. What may be the reason for that ?

  4. #4
    4 Star Lounger
    Join Date
    Feb 2002
    Posts
    537
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: global function (Access 2000)

    Sorry Hans for the question. I have found out the reason, it was so stupid i didnt place a value in the box. Please do apologize me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •