Edited by jp2558 on 01/03/27 13:33.
Access97 on WIN98se
I have two controls for which I’m trying to perform a subract operation to then show the result in a third control. The first control is a text box that is bound to an interger in a table. (Its value represents the number of seats an event will handle at capacity.) The second control is a list box that returns one field from one record via a query. (This is the number of seats for which people have already reserved for the event.) When I try to subtract the contents of the second field from the first and show it in a third control (text box) I get #Error displayed in the control. (This result field is supposed to tell me how many seat I have available until the event is sold out.) If I change the control to a list box and perform the subtraction I simply get an empty list box.
First question: Why do a text box and a list box react differently? I had originally intended to use a text box to display the query result but only received the #NAME/#ERROR when it was defined as a text box, and after changing it to a list box, the result of the query is properly displayed.
Second question (more obvious): How do I perform the subtraction of these two controls and display the result on a form?
Thanks in advance.