A
antgel
Hi all,
I am experimenting with an order system. Particularly, calculating
discounted prices on the fly, rather than storing them in a table. I love
the idea of doing this - if the processor is fast enough, as it keeps the
data nice and compact. I know there's pros and cons, but this is what I'd
like to do, ok?
The discount process is quite involved and I've written a VBA function that
I call from within the Jet SQL. The function takes a couple of previous
fields as parameters, does a couple of ADO Opens, and returns the correct
price. It works, the speed is OK-ish, but still a little disappointing as
the procedure doesn't do _that_ much. My question is, generally speaking,
is it quicker to do things in Jet SQL where possible? (e.g. maths
functions) If so, I'll take another look and see if I can streamline it.
Antony
I am experimenting with an order system. Particularly, calculating
discounted prices on the fly, rather than storing them in a table. I love
the idea of doing this - if the processor is fast enough, as it keeps the
data nice and compact. I know there's pros and cons, but this is what I'd
like to do, ok?
The discount process is quite involved and I've written a VBA function that
I call from within the Jet SQL. The function takes a couple of previous
fields as parameters, does a couple of ADO Opens, and returns the correct
price. It works, the speed is OK-ish, but still a little disappointing as
the procedure doesn't do _that_ much. My question is, generally speaking,
is it quicker to do things in Jet SQL where possible? (e.g. maths
functions) If so, I'll take another look and see if I can streamline it.
Antony