I have a continuous form showing expenditure transactions, broken down into what the money was spent on.
In the underlying table there is a "TransID" AutoNumber, a "TransNo" which generally is the next number up unless there is a combined transaction in which case they are the same, and a "Combined" - Yes/No
In the case of the 2 transactions dated 13th November, this was a single visit to a supermarket where food costing £25.74 was bought and £50 cashback. I want to show this as a single amount of -£75.74 in the transaction column as per this picture.
At the moment I am doing this manually by ticking the “Combined” column and changing the “Trans No” to the same value.
It’s messy because I do checks in the AfterUpdate that if the Combined is set to true there must be more than one transaction and also a check that the Trans Nos are the same.
What I want to do is select both records (highlighted – as if I were going to delete them) and apply the setting Combined = True and setting the Trans No to the first number of the group by pressing a command button.
So, has anyone got an elegant solution storing the relevant transaction IDs
Interestingly, if on the OnCurrent, I do a Debug.Print TransID, and highlight a number of records, it only prints the first record in the series.
Phil