Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67
    I think I figured it out - this is a form in datasheet view - I changed it to Continuous forms and the same result the field is not hidden but in single form view the field is hidden. Is there a datasheet version to hide the column based on a field value?

  2. #17
    RachelBedi is offline Advanced Beginner
    Windows Vista Access 2003
    Join Date
    Jul 2012
    Posts
    67
    GOT IT!!! Thank you SO much for your help Orange - can't tell you how appreciative I am of you being so patient :-D

    Private Sub Form_Current()
    Me.Text41 = DLookup("RoleName", "qryRole", "RoleName")
    If Me.Text41.Value = DLookup("RoleName", "qryRole") = "Dividends/Commissions" Then
    Me.[Bank Modified Date].ColumnHidden = False
    Else
    Me.[Bank Modified Date].ColumnHidden = True
    End If
    End Sub

  3. #18
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Private Sub Form_Current()
    Me.Text41 = DLookup("RoleName", "qryRole", "RoleName")
    f Me.Text41.Value = DLookup("RoleName", "qryRole") = "Dividends/Commissions" Then
    Me.[Bank Modified Date].ColumnHidden = False
    Else
    Me.[Bank Modified Date].ColumnHidden = True
    End If
    End Sub
    I think this should work
    Private Sub Form_Current()
    =
    If DLookup("RoleName", "qryRole") = "Dividends/Commissions" Then
    Me.[Bank Modified Date].ColumnHidden = False
    Else
    Me.[Bank Modified Date].ColumnHidden = True
    End If
    End Sub

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. VBA Reference, a good one
    By snoopy in forum Programming
    Replies: 3
    Last Post: 07-26-2012, 10:03 PM
  2. Is this a good database design?
    By Someday in forum Database Design
    Replies: 4
    Last Post: 07-22-2012, 06:50 PM
  3. Replies: 1
    Last Post: 06-06-2010, 12:29 PM
  4. SQL - Read any good books lately?
    By metaDM in forum Queries
    Replies: 2
    Last Post: 03-05-2009, 12:46 PM
  5. Creating a *Good* Custom Message Box
    By Jerimiah33 in forum Forms
    Replies: 1
    Last Post: 11-09-2005, 04:47 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