Collecting Statistics from fields

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2005
Posts: 75
Reputation: purplegerbil is an unknown quantity at this point 
Solved Threads: 6
purplegerbil's Avatar
purplegerbil purplegerbil is offline Offline
Junior Poster in Training

Collecting Statistics from fields

 
0
  #1
Jun 3rd, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 75
Reputation: purplegerbil is an unknown quantity at this point 
Solved Threads: 6
purplegerbil's Avatar
purplegerbil purplegerbil is offline Offline
Junior Poster in Training

Re: Collecting Statistics from fields

 
0
  #2
Jun 6th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: Collecting Statistics from fields

 
0
  #3
Jun 6th, 2005
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC