Hi All
Im looking to open a form (for the purposes of checking) that counts the grouped reference number in a table's field, however I'm getting myself into a muddle.
This is what I have at the moment:
The error is saying that it can't find the table !!!!
Any takers ?
Your time and patience is greatly appreciated.
Im looking to open a form (for the purposes of checking) that counts the grouped reference number in a table's field, however I'm getting myself into a muddle.
This is what I have at the moment:
Code:
Dim strSQL As String
Dim RefGCount As Integer
strSQL = "SELECT tblClients.Ref FROM tblClients GROUP BY tblClients.Ref;"
RefGCount = DCount("Ref", strSQL)
Me.ClientCount = RefGCount
The error is saying that it can't find the table !!!!
Any takers ?
Your time and patience is greatly appreciated.