Can't get my head around this difficult record count problem
Hi guys
Trying to simplify... basically i have a listbox which which displays a load of trips (from a dynamic query... the user may have just searched for all trips to barcelona, and so all the past trips to barcelona have come up in this list box). You can click on the trip you want more info on and the trip roster comes up for that trip (which will display the number of people going on the trip, and their details in a subform... here i could either look at teh record selectors, or i can add an unbound text box and stick a count(*) in to give me the number of people that are going/went on trip). Fine!
BUT!! What i need to be able to do, is display the NoOfCustomers going on each individual trip IN COLUMN IN THE LIST BOX! (ie count the number of records in the query where there tripID is the same...(and not where the destination/whatever is the same)).
I really need help on doing this - it's a simple task but has really puzzled me! If anyone can help, please give us a hand - i'll owe ya! Searching the forum didn't really help as my problem is a bit specific.
I've tried messing with the criteria of a NoOfCustomers field in the query but to no avail.
I understand that i haven't given all teh details here, because i don'twant people to read 3 lines then switch off and click the back button
so if anything needs clarification please let me know!
Thanks
Edd
Hi guys
Trying to simplify... basically i have a listbox which which displays a load of trips (from a dynamic query... the user may have just searched for all trips to barcelona, and so all the past trips to barcelona have come up in this list box). You can click on the trip you want more info on and the trip roster comes up for that trip (which will display the number of people going on the trip, and their details in a subform... here i could either look at teh record selectors, or i can add an unbound text box and stick a count(*) in to give me the number of people that are going/went on trip). Fine!
BUT!! What i need to be able to do, is display the NoOfCustomers going on each individual trip IN COLUMN IN THE LIST BOX! (ie count the number of records in the query where there tripID is the same...(and not where the destination/whatever is the same)).
I really need help on doing this - it's a simple task but has really puzzled me! If anyone can help, please give us a hand - i'll owe ya! Searching the forum didn't really help as my problem is a bit specific.
I've tried messing with the criteria of a NoOfCustomers field in the query but to no avail.
I understand that i haven't given all teh details here, because i don'twant people to read 3 lines then switch off and click the back button
Thanks
Edd
Last edited: