I've got a form that allows a user to enter search parameters and then click "search" which opens a second form to display the results of a query based on the search parameters. In the header of the results form I want a text box called total results that contains the number of results of the query.
I've tried to do this with DCount("*", "Query Name") and when I open the form it says "Calculating..." in the lower left and just stalls out.
I'm thinking maybe I need to calculate the total with the parameters that were used to search (but then how do I pass that number to my textbox?)
Or maybe I can recalculate some other way on the form, but I can't get it to work without stalling on the Calculating...
Thanks.