Results 1 to 2 of 2
  1. #1
    5 Star Lounger
    Join Date
    Feb 2001
    Louisville, Kentucky, USA
    Thanked 0 Times in 0 Posts

    Command Button (Access 2000)

    Hi All,

    Hope someone can help me with this one.

    I have 4 command buttons on a form, cmdTimeIn, cmdLunchOut, cmdLunchIn and cmdTimeOut. The visible is set to NO on all except TimeIn. As a button is clicked it turns the previous button's visible to false and the next buttons visible to true.

    Everything is working perfectly except:

    For example: If I close the form with the 3rd button, cmdLunchIn, visible and the others are not, when I reopen the form, the cmdTimeIn button is visible.

    What I need to do is to find a way to leave the button that is visible on close to be visible on open.

    Does someone have a solution for me?

    Thanks in advance.
    Roberta Price <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Crystal Beach, FL, Florida, USA
    Thanked 41 Times in 40 Posts

    Re: Command Button (Access 2000)

    You could accomplish by storing the status of your buttons (or at least which is "active") somewhere. You can put this in a table or the registry.

    However, is there any way you can look at your data to get this info? Perhaps using DMax to get last record written, so if it a TimeIn, then you know the LunchOut button should be visible now!
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

Posting Permissions

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