Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Generating a count of select records 1

Status
Not open for further replies.

MisterrMac

Technical User
Jul 19, 2002
20
US
I have a simple one table DB where I am tracking incidents. On the incident input form I want to have a total count of an entered incident number from the table.

In other words, when I select or enter a number in one form field (IncidenID), I want another form field (Count) to output the number of times this incident number appears in the IncidentID field of the database.

*Incidents Table*

RecordID -- Date/Time
IncidentID -- Number
UserName -- Text
Details -- Memo

Thanks in advance!
 
in the IncidentID field after update event put this code
me!count = dcount("IncidentID","Incidents Table","IncidentID=" & me!IncidentID)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top