Results 1 to 2 of 2
  1. #1
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67

    Problem with VBA


    Hi guys - need some help with some code - in my form's on current event I have the following code;

    Code:
    Private Sub Form_Current()
    Me.Text41 = DLookup("RoleName", "qryRole", "RoleName")
    If DLookup("RoleName", "qryRole") = "Dividends" Then
    Me.[Bank Modified Date].ColumnHidden = False
    Me.[BankTouches].ColumnHidden = False
    Me.[BankerFollowUpDate].ColumnHidden = False
    Me.[Country].ColumnHidden = False
    Me.[State].ColumnHidden = False
    Me.[Bank Status].ColumnHidden = False
    Me.Text41.ColumnHidden = True
    Else
    Me.[Bank Modified Date].ColumnHidden = True
    Me.[BankTouches].ColumnHidden = True
    Me.[BankerFollowUpDate].ColumnHidden = True
    Me.[Country].ColumnHidden = True
    Me.[State].ColumnHidden = True
    Me.[Bank Status].ColumnHidden = True
    Me.Text41.ColumnHidden = True
    End If
    End Sub
    Unfortunately for some reason the code stopped showing the columns this morning - it's as if they are all set to false. I'm not entirely sure what's going on and I'm kind of at a loss. Any suggestions?

  2. #2
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67
    this was a base query issue though not sure why the code was working for the past two weeks or so....strange

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

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2012, 11:52 AM
  2. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  3. query problem i have a problem wi
    By maxx3 in forum Queries
    Replies: 0
    Last Post: 06-29-2009, 02:29 AM

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