944,181 Members | Top Members by Rank

Ad:
Jun 3rd, 2005
0

Collecting Statistics from fields

Expand Post »
I have a list box containing a list of field names. The user would select/hi-light a number of these so they can find out quantities.

The file the fields are from is in csv format

ie: List box contains-
Title
Initial
Surname
Address1
Address2
Media Code
Ref Number

If the user selects 'Title' and 'Media Code' then click a command button. The app will run through the data counting how many of each variation it finds. A report will then be created.

Results for Title:
Mr - 3654
Mrs - 3554
Miss - 564
Ms - 884
Dr - 3

Results for Media Code:
A123 - 4533
B545 - 6003
Blank - 27

I was thinking on the lines of using an array to store the information but not sure. The user could select anything from 1 field upto and above 30. (Some files have over 100 fields to choose from.)

I do not want to import the data into a database. the records within the file range from a few hundred to 6-7 million.

Thanks for any help/ideas given.
PG
Similar Threads
Reputation Points: 24
Solved Threads: 6
Junior Poster in Training
purplegerbil is offline Offline
78 posts
since Apr 2005
Jun 6th, 2005
0

Re: Collecting Statistics from fields

I have started to have a go at this using a 3d array.
i.e. varStats(fieldname,code,quantity)

fieldname - selected from list box
code - found within the field
quantity - how many of the code fornd within the data file


If anybody has any ideas on another way of doing this please post.

Thanks
PG
Reputation Points: 24
Solved Threads: 6
Junior Poster in Training
purplegerbil is offline Offline
78 posts
since Apr 2005
Jun 6th, 2005
0

Re: Collecting Statistics from fields

it sounds to me like you have it figured out. Sometimes it's a bit more complex than we would like it to be.... or that we originally thought. Sorry I couldn't have given you more assitance on this matter.... but I'm a little confuzzled with it myself.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: wav file problem
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Password Generator





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC