Hi all.
I was wondering if somebody could assist me with a problem I have with a database I am trying to create as a project for work. I've been asked to make an 'invoicing database' which when different departments purchase items said database acts as a log (information regarding the purchase would need to be entered manually).
Just as a prefix - I'm no expert at Microsoft Access so please don't flame me too much if I've messed up the database design.
The database contains a few tables:-
Table A - Stores all the required fields for the form (e.g. date purchased, date received, quantity, department code, total cost of order)
Table B - Contains department code and total spendable budget
I've created a form with various fields which the user can insert data in to (plus validation) and all of this works great. When a user inserts data it reflects in Table A and therefore this is then used to run queries against. I've also linked together the department codes in the two tables as a relationship. My problem is that I wanted to have a dynamic label or text box in the form which shows the remaining budget to the appropriate department.
E.G - Table B lists Department with the code "123" having "£10000" to spend. If I enter an order with a total value of £500 and select department code "123" from the drop-down menu I'd like the form to subtract the amount remaining in Table B for this department and show a remaining budget on the form. (£10000 - £500 = £9500).
I did try to solve this by using various methods but nothing seemed to work, all I ended up with was a "#NAME in the budget remaining label on my form.
I hope that I have explained this well enough so that it is understandable...
Much appreciated!
Neil
I was wondering if somebody could assist me with a problem I have with a database I am trying to create as a project for work. I've been asked to make an 'invoicing database' which when different departments purchase items said database acts as a log (information regarding the purchase would need to be entered manually).
Just as a prefix - I'm no expert at Microsoft Access so please don't flame me too much if I've messed up the database design.
The database contains a few tables:-
Table A - Stores all the required fields for the form (e.g. date purchased, date received, quantity, department code, total cost of order)
Table B - Contains department code and total spendable budget
I've created a form with various fields which the user can insert data in to (plus validation) and all of this works great. When a user inserts data it reflects in Table A and therefore this is then used to run queries against. I've also linked together the department codes in the two tables as a relationship. My problem is that I wanted to have a dynamic label or text box in the form which shows the remaining budget to the appropriate department.
E.G - Table B lists Department with the code "123" having "£10000" to spend. If I enter an order with a total value of £500 and select department code "123" from the drop-down menu I'd like the form to subtract the amount remaining in Table B for this department and show a remaining budget on the form. (£10000 - £500 = £9500).
I did try to solve this by using various methods but nothing seemed to work, all I ended up with was a "#NAME in the budget remaining label on my form.
I hope that I have explained this well enough so that it is understandable...
Much appreciated!
Neil