D
dhstein
I can display a record count of a table like this:
MsgBox DBEngine(0)(0)!tblProduct.RecordCount
I'd like to put this statement in a function which will be passed the name
of the table as a string
Function CountRecords(TableName As String)
MsgBox DBEngine(0)(0)!TableName.RecordCount ' This syntax doesn't work
End Function
What syntax do I need here? Thanks for any help.
MsgBox DBEngine(0)(0)!tblProduct.RecordCount
I'd like to put this statement in a function which will be passed the name
of the table as a string
Function CountRecords(TableName As String)
MsgBox DBEngine(0)(0)!TableName.RecordCount ' This syntax doesn't work
End Function
What syntax do I need here? Thanks for any help.