I will try to put this as succinctly as possible, but bear with me!
I have a table containing records (duh), and a Form that is used to display those records.
More than one record can, and usually does, have the same contract number (separate records for each line in the order).
What I'm attempting to accomplish is this:
When a user updates a records field in a form, i.e.-email address, comments, etc. Then I would like for the field that they updated (let's say it was comments) to copy to the rest of the records in the table WHERE the contract number and ProductID is the same.
It seems like that should be simple with VBA, but I'm having trouble figuring out where to begin!
There are only certain fields on the form that can be updated, most of them are locked, so I think it could be an On Change event for each field that "Can" be updated.
But I'm leaning more towards an maybe an After Update event on the Form itself.
Reason being, I want a msg box to ask the user if the want to apply the changes to all similar records.
This would be annoying if it popped up on you for every field, better to pop up once, like when you are trying to close the form, or just navigate to the next record.
If anyone has any ideas or suggestions I would REALLY appreciate it!
I can usually roll pretty well on my own as long as I can find a place to start or an example to grow off of.....in this case, I can't find anything. If I wanted it to copy to ALL records, I'd be set, but I don't!
Thanks in advance for any help or guidance!
I have a table containing records (duh), and a Form that is used to display those records.
More than one record can, and usually does, have the same contract number (separate records for each line in the order).
What I'm attempting to accomplish is this:
When a user updates a records field in a form, i.e.-email address, comments, etc. Then I would like for the field that they updated (let's say it was comments) to copy to the rest of the records in the table WHERE the contract number and ProductID is the same.
It seems like that should be simple with VBA, but I'm having trouble figuring out where to begin!
There are only certain fields on the form that can be updated, most of them are locked, so I think it could be an On Change event for each field that "Can" be updated.
But I'm leaning more towards an maybe an After Update event on the Form itself.
Reason being, I want a msg box to ask the user if the want to apply the changes to all similar records.
This would be annoying if it popped up on you for every field, better to pop up once, like when you are trying to close the form, or just navigate to the next record.
If anyone has any ideas or suggestions I would REALLY appreciate it!
I can usually roll pretty well on my own as long as I can find a place to start or an example to grow off of.....in this case, I can't find anything. If I wanted it to copy to ALL records, I'd be set, but I don't!
Thanks in advance for any help or guidance!