I have a text box and I am trying to count a certain number of rows. Suppose the textbox is called txtnumrows
My SQL Statements are as follows: (the rest is probably unimportant)
Dim sqlstring as String
sql string = "SELECT COUNT (rowcount) FROM tbltable"
DoCmd.RunSQL (string)
I have tried with a query and some other stuff. How do I make it so that the textbox will understand the SQL statement and display the number of rows in the table?
My SQL Statements are as follows: (the rest is probably unimportant)
Dim sqlstring as String
sql string = "SELECT COUNT (rowcount) FROM tbltable"
DoCmd.RunSQL (string)
I have tried with a query and some other stuff. How do I make it so that the textbox will understand the SQL statement and display the number of rows in the table?