A family of Microsoft relational database management systems designed for ease of use.
Hi Scott & Ken,
My original request was to better filter my combo box to include only those appointments belonging the client in the main form. I finally figured out to go to the row source for the combo box and click the [...] button. Then in the query screen I located the ClientID field and added the criteria below.
Field: ClientID
Table: tblAppointment
Criteria: [Forms]![frmAccount]![ClientID]
This worked to restrict the combo box to only the one client's appointments. I found I still had a problem that it would not refresh the data when I clicked to get to the next record, and I had to hit 'refresh'. Then after experimenting I found that a macro to refresh worked when I put the refresh in an event on the form's properties (not on the field's) 'On Current'.
In response to your other points, I do see what you mean about the balance field not being in a table, and not all transactions would be tracked this way. If the client pays cash, then the revenue field in tblAppointment is the only record of the revenue/payment. Scott had a question too about payments; the client can make one payment for several appointments. This new functionality is so the client can run up a tab.
I am posting this in case you have any further caveats for me, and for others in the future who may have a similar challenge. I still don't know how to populate 'txt' fields from a subform to save the data to a third table (not the table providing the main or subform data), but eventually, maybe I will figure out that too if I ever need it.
Thanks guys!