GK in the UK
Registered User.
- Local time
- Today, 00:07
- Joined
- Dec 20, 2017
- Messages
- 281
Just reached a milestone in my replacement accounting application. Imported about 50k records and after a few false starts I now have matching debtors, creditors and trial balance. I had to code a 'conversion' routine to deal with differing conceptual design but my project seems to have come to life now it has forms filled with data.
I stuck to the 'no calculated fields' mantra. But I wonder if it was counter-productive. I've lost count of the number of queries and code lines I've had to write stating (pseudo code):
Invoice_line_total = qty x units x price - discount. Then do it again to add the tax element. An additional (whisper) calculated field for line_total written at invoice creation time would have saved loads of code.
for the invoice total, I code:
Invoice_total = net value + vat value
for a part paid invoice, I code:
Outstanding = net value + vat value - value allocated
It does seem tiresome at times. All these queries could have been simplified if I just updated the calculated field at the point of creation, which is on two forms only, frmInvoice, and frmPayment. It's not too late to change it (though it will be quite a bit of work - I suspect I'll leave it alone). Should I be the purist or the realist ? What say the Access gurus ?
I stuck to the 'no calculated fields' mantra. But I wonder if it was counter-productive. I've lost count of the number of queries and code lines I've had to write stating (pseudo code):
Invoice_line_total = qty x units x price - discount. Then do it again to add the tax element. An additional (whisper) calculated field for line_total written at invoice creation time would have saved loads of code.
for the invoice total, I code:
Invoice_total = net value + vat value
for a part paid invoice, I code:
Outstanding = net value + vat value - value allocated
It does seem tiresome at times. All these queries could have been simplified if I just updated the calculated field at the point of creation, which is on two forms only, frmInvoice, and frmPayment. It's not too late to change it (though it will be quite a bit of work - I suspect I'll leave it alone). Should I be the purist or the realist ? What say the Access gurus ?