Access 2007 Multiple item forms are fantastic. They have been the number 1 tool for meeting my clients needs, so far.
Despite all my praise, there is a trouble I run into from time to time. I can't seem to use VBA to change just 1 item in the form.
For instance, the form currently shows several table entries on one page, each entry (or row of the form) has a text field and a button. I want the button for only the currnent row to become disabled after one click. Buttons on the other rows need to remain enabled, until they are clicked, and then become disabled.
To accomplish this, I wrote a little VBA. On the Click event I added
// take focus away from the button- it can't be disabled AND have focus.
Me.text_field.SetFocus
// disable the button
Me.button.enabled = False
As you can imagine- every button on every row of my multiple form becomes disabled.
Any ideas?
*note- I know I could save a flag to identify 'enabled/disabled' in the table.
I do not want to do this.
Despite all my praise, there is a trouble I run into from time to time. I can't seem to use VBA to change just 1 item in the form.
For instance, the form currently shows several table entries on one page, each entry (or row of the form) has a text field and a button. I want the button for only the currnent row to become disabled after one click. Buttons on the other rows need to remain enabled, until they are clicked, and then become disabled.
To accomplish this, I wrote a little VBA. On the Click event I added
// take focus away from the button- it can't be disabled AND have focus.
Me.text_field.SetFocus
// disable the button
Me.button.enabled = False
As you can imagine- every button on every row of my multiple form becomes disabled.
Any ideas?
*note- I know I could save a flag to identify 'enabled/disabled' in the table.
I do not want to do this.