I am working on a payments portion of a database. I have designed a Payment Entry form with an embeded subform (from a payments table) which shows all previous payments made on this account. The main form allows new payments to be entered as they are recieved at a walk up window or via mail.
I would like to add a box on the main form that shows the total payments recieved to date. I have designed a query that totals that information, but have no idea how to get it to appear on the main form and run without the user inputing the account number. Is there a way to get this query to launch and run once the record is loaded AND retrieve the account number from record that the user ends up on? Users search for accounts by using numerous fields (Name, Due date, etc...) since no one ever remembers or has their account number.
I assume setting the query to run On Load would work, but getting it to only display the current account is beyond me...
Any help would be great!!! I could setup a button that launches the query and then make them enter in the account number, but that is tacky....
Thanks
I would like to add a box on the main form that shows the total payments recieved to date. I have designed a query that totals that information, but have no idea how to get it to appear on the main form and run without the user inputing the account number. Is there a way to get this query to launch and run once the record is loaded AND retrieve the account number from record that the user ends up on? Users search for accounts by using numerous fields (Name, Due date, etc...) since no one ever remembers or has their account number.
I assume setting the query to run On Load would work, but getting it to only display the current account is beyond me...
Any help would be great!!! I could setup a button that launches the query and then make them enter in the account number, but that is tacky....
Thanks