I have a form linked via a query to a table. People can update the table by entering data through the form. I am wanting to detect when a record (containing several fields) is changed - either by 1 or more fields being changed/updated. I want to acknowledge the fact a change has been made (by updating a field called RecChange ) in the table driving the data behind the form. I have used a field level "On Update" to increment a public variable RecChangeCount (+1) value to give a total of the changes.This function has been put on each of the form fields so that each field can cause an incremention indepentdently . I now want to move that number to the RecChange field on the table I tried using the form level "On Update" to do a me.RecChange.value=RecChangeCount as I thought being that it was at form level it would look at the fact I had left the record to move to the next record to trigger me.RecChange.value=RecChangeCount. The value is moving across but the form now seems to lock on current record preventing moving to the next one. Looking closely I am getting error message 2950 argument 97. There is a macro triggered when a field level update happens. This macro runs a VBA function RecChangeCount=RecChangeCount +1. When I remove me.RecChange.value=RecChangeCount from my form level update statement, I can move between records again but there is no data written to the RecCount field.Is there a clash between form level and field level update events. The error message implies it don't like my run code/function in the macro?
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Fellow title is reserved for select members who demonstrate sustained contributions, industry leadership, and outstanding performance. We will announce the experts being inducted into the Experts Exchange Fellowship during the annual Expert Awards, but unlike other awards, Fellow is a lifelong status. This title may not be given every year if there are no obvious candidates.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.