Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 1st, 2003, 10:23 AM
Schway442 Schway442 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 Schway442 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 55 sec
Reputation Power: 5
Question Searching a Text File...

I created a database to store records and had no problem returning query results. However, I was told that we can't use Access and that the records need to be stored in a semi-colon delimited text file.

I have no clue whatsoever how to write a search. This file holds over 260,000 records so speed is possibly going to be a problem.

The file format is (semi-colon used because of name Format with comma):

ID; Lastname, FirstName; Sex; Date of Birth; Mother's Name

Originally with the database I selected a field to search and ran the related query with the criteria pulled from a text box. Now I'm thinking that I just need a text box and run the search for matches from that single text box.

A piece of code to get me started would be lovely. Or... if you have links to any tutorials that would be great to.

Thanks,

Phil

Reply With Quote
  #2  
Old August 1st, 2003, 10:31 AM
Schway442 Schway442 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 Schway442 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 55 sec
Reputation Power: 5
Oh.. and they are sorted by Last Name.

Reply With Quote
  #3  
Old August 3rd, 2003, 10:37 AM
K-TC K-TC is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: England
Posts: 12 K-TC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to K-TC Send a message via AIM to K-TC Send a message via Yahoo to K-TC
I wrote this in a different thread, but it seems like it could be useful to you too:

http://forums.devshed.com/showthrea...0199#post330199

Reply With Quote
  #4  
Old August 3rd, 2003, 05:11 PM
NicMic's Avatar
NicMic NicMic is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Cheltenham, England.
Posts: 94 NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level)NicMic User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 35 m 32 sec
Reputation Power: 9
Phil,

Before you go too far down the redesign route...

I'm assuming your top-level app is VB and your original solution is storing the data in an "Access" DB? I say "Access" because, if you are using VB/ADO (or DAO), "Access" is not involved (at least that's my understanding). What you are doing is using the JET DBMS via ADO (or DAO) - Access is a product that uses JET in a similar manner and at the same "level" as your VB app. The point I'm making is that the target PC does not need to have Access installed in order to run - you can distribute your .exe and .mdb without the need for a licence on the target PC.

With the data volumes you mention, I seriously doubt that a flat-file solution is practical in a real-world situation - I strongly urge you to get back to whoever issued the edict against Access and clarify the situation.

I should stress that this is my current understanding of the situation - if I'm wrong, I hope that others will set me right (‘cos if I AM wrong, I’m in deep smelly stuff ).

Last edited by NicMic : August 3rd, 2003 at 05:15 PM.

Reply With Quote
  #5  
Old August 4th, 2003, 09:22 AM
Schway442 Schway442 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 43 Schway442 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 32 m 55 sec
Reputation Power: 5
NicMic,

Your assumption is close to correct. The database was imported from a quarterly report (typically thousands of pages long) that helps whenever our mini-computer or network is down for whatever reason. The database will be updated every quarter.

Because it is strictly for use with downtimes, everything must be done on the local machine. I was given the impression that Access must be installed for Visual Basic to run queries and pull the needed data.

According to your post I'm wrong, and so was a certain unnammed professor. But of course, sometimes being wrong is a good thing. =)

Thanks,

Phil

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Searching a Text File...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway