I looked over the other threads about subtraction and I couldn't find one I thought I could apply to my problem. I have a spreadsheet that I am trying to split and have all of the data and data entry parts in Access and use an External Data Range to feed all of the formulas. I have it 99% done except that when I replaced the data entry sheet I thought all the formulas where based on the SUM function. It turns out that 1/2 of the formulas are based on subtraction. In Excel I have a column for each year and a Balance Sheet value. I made a table in Access with three columns, Year, Balance Sheet Type, and Amount. At first I thought that I could multiple by (-1) and add them but when I try that to -100, -50, and -30 I get 180 instead of -20. I need the users to be able to add a new record each year without having to make changes to the database or the Excel sheet. Can anyone offer any suggestions on how to subtract multiple records from each other?
My only thought was to write a function that opens a recordset, with all of the records for that type, and move through each record and subtract it from the previous. I would have to make sure the records were sorted in the right order to be able to do that. I can do this, but I was hoping that there was an easier way that didn't taking opening and closing so many recordsets.
Thank you for your time,
sabloomer
My only thought was to write a function that opens a recordset, with all of the records for that type, and move through each record and subtract it from the previous. I would have to make sure the records were sorted in the right order to be able to do that. I can do this, but I was hoping that there was an easier way that didn't taking opening and closing so many recordsets.
Thank you for your time,
sabloomer