Hello Everyone,
I know this shouldn't be too difficult, I've just been so mired in other tasks that I feel my Access skills leaking out of my head. Therefore feel free to let me know how simple this is and how I should have figured it out already.
The general situation:
I have a form where my users enter information about customers into a table (pretty straight forward, right?). Each customer has a unique ID by which we identify them, however they may have multiple records on this table if there are multiple issues.
Specific Issue:
I want to construct a record count textbox or combobox (whichever is easier) on the form that will display the number of records a customer has in the table. I want the criteria to the value in the ID textbox. So basically, there may be 30 records in the table but customer 5 only has 2 records. When I navigate in the form to either of those two records I want the record count to display 2. When I am entering a new record, once I've entered the ID and navigated to another control, the record count should update to reflect the creation of the new record.
I've tried simple stuff like =Count([ProbTracker].[ID] = [ID]) for a text box data source. It always gives me the total number of records.
I eventually want to use this criteria ([ProbTracker].[ID]=[Form].[ID]) in a SQL statement so I can generate a small report that would show each record specific to that customer. I figure I'll use some DAO or ADO recordset code to help me out there.
Any and all eventual help is much appreciated!