G
Guest
I am working on a very detailed financial database and I am trying to balance
my numbers as I go. One of the queries that I need to write involves a rather
complex calculation. Based on different account numbers, I need to take one
number and subtract the other one from it. For example, I have some accounts
that start with a 175, some that start with a 155 and some with 70. How can I
write my query so that if the account number start with a "175" it should
subtract the corresponding "155" from it and if it doesn't it should just
give me the balance that's there. In Excel I can do this easily with a If and
Mid function, but I'm not sure how that would work in Access. Any help would
be much appreciated!!!! Thank you!
my numbers as I go. One of the queries that I need to write involves a rather
complex calculation. Based on different account numbers, I need to take one
number and subtract the other one from it. For example, I have some accounts
that start with a 175, some that start with a 155 and some with 70. How can I
write my query so that if the account number start with a "175" it should
subtract the corresponding "155" from it and if it doesn't it should just
give me the balance that's there. In Excel I can do this easily with a If and
Mid function, but I'm not sure how that would work in Access. Any help would
be much appreciated!!!! Thank you!