Greg Hains Posted November 25, 2009 Posted November 25, 2009 Hi. I have a database that has two tables. The first being the client list itself, and a second being of their visits to a store. Clients have between 0 and many visits recorded in the second table and they are related. When I go to a related record from the client table and there are 1 or more visit records then I can get an accurate count, but if there are no visit records then I get a return FoundCount of the number of client records. I have been experimenting with errorcodes and the like to try and establish how I can accurately detect zero visit records, but with no luck. Anybody got a suggestion please? Greg
IdealData Posted November 25, 2009 Posted November 25, 2009 Create a calculation field in the Clients table: Count (VISITS::AnyField) Assuming VISITS is the relationship, and "AnyField" is any field in the related table.
comment Posted November 25, 2009 Posted November 25, 2009 Make sure you pick a field that cannot be empty - such as Visits::ClientID, for example.
Greg Hains Posted November 25, 2009 Author Posted November 25, 2009 Thankyou to you both. That worked well. Cheers, Greg
Recommended Posts
This topic is 5476 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now