Hello,
I am working in Access 2007. I access to determine how many records I have for a specific CommunityID from the InputTable. For example I want know how many records there are for CommunityID 00001. I don’t know what is wrong with my code. It is giving a total of how many records are in the database instead of 9 records for CommunityID 00001. See code below. Your help will be greatly appreciated. Thank you.
GMSRE
Dim rCnt As Integer
rCnt = DCount("[CommunityID]", "InputTable", "[CommunityID]= 'Me.Community'")
I am working in Access 2007. I access to determine how many records I have for a specific CommunityID from the InputTable. For example I want know how many records there are for CommunityID 00001. I don’t know what is wrong with my code. It is giving a total of how many records are in the database instead of 9 records for CommunityID 00001. See code below. Your help will be greatly appreciated. Thank you.
GMSRE
Dim rCnt As Integer
rCnt = DCount("[CommunityID]", "InputTable", "[CommunityID]= 'Me.Community'")