• Command Button (Access 2000)

    Author
    Topic
    #361009

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #544824

      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!

    Viewing 0 reply threads
    Reply To: Command Button (Access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: