Hi
I'm creating a simple inventory system with the option to print reports for individual accounts or grand total for all accounts. The individual reports works just fine, but for the grand total-report I'd like to add the possibility to compare current numbers and numbers from previous dates.
So my idea was calculate the total each time I press the "Create report"-button and then copy these numbers into a table (a table which also keeps track of the date this data was added).
Now, I've got everything except the copy-process working. I've tried to copy the data with
- copyAccountBalanceSQL = "UPDATE tblAccountHistory" _
-
& " SET tblAccountHistory.Amount = (SELECT tblTemp.KontoSumma FROM tblTemp)
But this gives me the error "Operation must use an updatable query. (Error 3073)". The above code works if I fill in a constant instead of the SELECT, so I'm guessing that's not ok to do.
So if anybody would have some tips or pointers of other ways to do this, I'd be very glad. If I'm thinking fundamentally wrong somewhere, please point it out, I'm still trying to learn and really appriciate all the advice I can get.
Oh, and I'm using Access 2003, and the above SQL is executed through a DoCmd.RunSQL in a OnClick-event.