Hi Rick, In lesson 9, index 17:32 of the Search Seminar you show us how to create a NEXT button to navigate to subsequence records of the same company. How could I add a field in the form to show me how many records of that company are in the database?
Reply from Richard Rost:
You could use a DCOUNT command in a text box to figure this out for you:
=DCOUNT("*","MyTableT","CompanyID=" & CompanyID)
Just put that command (change the names accordingly) on your form in a text box (as the ControlSource) and it should refresh with each record.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Search Seminar.