Hi All...
I've been working on a stock control database for a pharmacy as a school project and have been right on track till now...
I've made an update query to update the stock in the stock table by adding the quantity ordered from the order form using the unique serial number assigned to each medicine as the criterion... (I know this isn't the best practice...)
It works fine when there two or less records are present regarding a serial number in the order table... but when there are more than two records presents it gives the following warning :-
"You are about to update "n" number of rows" where n is the number of records present - 1 ...
But it should give the following warning "ALWAYS" :-
"You are about to update 1 row"
After it gives the warning it updates the stock but does it in the following manner :-
Qty Available(Stock Table) = [Qty Available (Stock Table) + Qty Ordered (Order Form)] * n (number of rows shown in the warning) ...
I don't know what to do...
A sample of my database has been attatched...
-PS : Don't tell me to convert it to VBA because I have been told by my teacher not to use it as I will lose marks...