Results 1 to 2 of 2
Thread: Command Button (Access 2000)
2001-10-01, 12:10 #1
- Join Date
- Feb 2001
- Louisville, Kentucky, USA
- Thanked 0 Times in 0 Posts
Command Button (Access 2000)
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>
2001-10-01, 12:31 #2
- Join Date
- Jun 2001
- Crystal Beach, FL, Florida, USA
- Thanked 36 Times in 35 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!