I am trying to get the record count from a table. I want the table name to come from the filename that the user inputs into the form. The code I am using at the moment is:
tblname = Me.filename
totrec = DCount("*", tblname)
Me.TotalRec = totrec
But it throws an error, saying I entered an...