Add and Subtract

lead 27

Registered User.
Local time
Today, 09:57
Joined
Mar 24, 2007
Messages
147
Hi

I want to make a button which when clicked will bring up a box which the user will enter a number which will then be subtracted from a number in a field.

I have tried an update query however not been able to getting it working.

Any ideas?
 
The question is slightly different. I no longer want the unbound text box. Instead I want to click the button and have the box appear (as in an update query) so there is only one button and thats it.

I have managed to get an update query to work by doing in the update to box:

qty-[Amount] however this updates every record in the table and I only want the one I am currently on
 
That shouldn't be a problem. Just set the criteria of your update query to select the record you want to update. This might need a little coding behind the button before you fire off the query
 
Dont suppose you might have any idea what the code would be? ;)
 
Since I don't know your selection criteria I can't write you code but you just need to create a SQL string that has the update info and a Where clause that finds the record you want to update.
 

Users who are viewing this thread

Back
Top Bottom