Results 1 to 3 of 3
  1. #1
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662

    Hide or display button on Continuous Form depending on value in text box.

    Have a Continuous Form with 2 bound Text Boxes ( txtID & txtStatus ) & an unbound button.


    If the Text box txtStatus has value "Pending" in it, I want the button "View Details" to be Visible, else want to hide the button.

    Request some pointers.

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    When you use a continuous form, VBA will fire for the current record. So, if you click on record number three, the VBA will evaluate the data in that record and will not consider data in records one and two. The result will be applied to all visible records. This is how unbound controls behave in continuous forms.

    The closest thing to a solution would be conditional formatting. However, I do not believe this will benefit you and your button control.

    You are most likely going to have to use the form's Header and or Footer for your Command Controls. Another option is to use an unbound Main form to simulate a Header/Footer.

  3. #3
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    @ItsMe,
    Was hoping against hope, that it could be done.
    And Thanks for the pointers to other possible options.

    Thanks

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

Similar Threads

  1. Replies: 6
    Last Post: 06-25-2014, 11:58 AM
  2. Replies: 3
    Last Post: 01-08-2014, 06:37 PM
  3. Replies: 6
    Last Post: 10-11-2012, 02:19 PM
  4. Replies: 5
    Last Post: 08-08-2012, 01:30 PM
  5. Making a toggle button hide a text box.
    By RemonKoybito in forum Forms
    Replies: 3
    Last Post: 05-20-2011, 11:34 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