adding to and displaying results in a text box

R

Russell

I know how to run a query to get the total row count of a
database. What I need to know is how I would code this
total to add 1 to it and then display that total in a
text box on a form. Thanks for any and all help.
 
V

Van T. Dinh

Set the ControlSource of your TextBox to:

= DCount("*", "YourQuery") + 1

where YourQuery returns the rows that you want to select.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top