Im not to sure what you mean, ive created a query which asks the user which has
Item number
Description These are all shown
Price
Then there is
Quantity which is not shown
I have then created a form with the data source being the above query which is called Stock. I have then created a button which when pressed should minus quantity by 1 the code i have put in is
[Stock]![Quantity] = ([Stock]![Quantity] - 1)
And this is done in the expression. However im getting this error message saying
The expression OnClick you entered as the event property setting produced the following error: The object doesnt contain the automation object "Query2."
The expression may not result in the name of a macro , the name of a user defined function, or [Event procedure]
There may have been an error evaluating the function, event or macro
Should i be doing this in a macro?