shogikishi
IS-IT--Management
Greetings Tek-Tip Gurus,
I have an Access 2003 form that puzzles the hell out of me.
How to have a submit button on each record in a subform that is independent of other submit buttons on that subform.
Within the subform is a continuous recordset with each record containing basic info such as type, volume, frequency, etc - basic data relevant just to that record. There is a submit button on each record that runs calculations on the data in the record and posts it to another table.
What I'd like to do is make it so that the submit button can be clicked only once (to avoid accidentally reposting the same record or overwriting data). I've been able to write a sub that disables the submit button after it has been clicked, but by doing so, it disables ALL the submit buttons for all the other records in the subform.
Is there a way to have them act independently of one another, so that a sub acts on just the button in the current record and not all of the records on the subform?
An image of the subform/button can be seen here:
Any help would be appreciated
I have an Access 2003 form that puzzles the hell out of me.
How to have a submit button on each record in a subform that is independent of other submit buttons on that subform.
Within the subform is a continuous recordset with each record containing basic info such as type, volume, frequency, etc - basic data relevant just to that record. There is a submit button on each record that runs calculations on the data in the record and posts it to another table.
What I'd like to do is make it so that the submit button can be clicked only once (to avoid accidentally reposting the same record or overwriting data). I've been able to write a sub that disables the submit button after it has been clicked, but by doing so, it disables ALL the submit buttons for all the other records in the subform.
Is there a way to have them act independently of one another, so that a sub acts on just the button in the current record and not all of the records on the subform?
An image of the subform/button can be seen here:
Any help would be appreciated