Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output

Post new topic   Reply to topic
Reading Number of .Doc files and saving in database........
View previous topic :: View next topic  
Author Message
Silly Star
Newbie


Joined: 15 Jul 2005
Posts: 4

PostPosted: Jul 16th, 2005 12:03 AM    Post subject: Reading Number of .Doc files and saving in database........ Reply with quote

i m retrieving a number of .Doc files from a single folder, these files have the same data format.

i can retrieve these file with the code given below.

Code:
 Dim sFileName As String
       sFileName = Dir$("C:\MyFoldername\*.DOC")       
       Do While sFileName <> ""
                             
                        sFileName = Dir$
       Loop


now i want to read the text form these .Doc files nd save them in the database.
i dont know how to do this.


the Data format in Files is :::::::::::::::::::

_______________________________________________________________________
Surname ___________ Forename __________ Lab No: __________ |
Age__________ Sex_______ Pat No:__________ Date _________ |
Address_____________________________________________________________ |
_______________________________________________________________________

Test | Result
HBsAg | Non-reactive (0.65)
Anti-HCV (Antibodies) | Non-reactive (0.42)
Anti-HIV I & II (Antibodies) | Non-reactive (0.30)

[/quote]
Back to top
View user's profile Send private message Yahoo Messenger
RoofRabbit
Regular


Joined: 06 Jul 2005
Posts: 95
Location: Lenoir, NC USA

PostPosted: Jul 19th, 2005 07:39 AM    Post subject: Reply with quote

Are you wanting to create your own custom database or put the data into an existing database program like excel or something? I can help with making a custom database, but not very familiar with excel or lotus database programs.
_________________
Website - [link]
Back to top
View user's profile Send private message Visit poster's website ICQ Number
Silly Star
Newbie


Joined: 15 Jul 2005
Posts: 4

PostPosted: Jul 20th, 2005 07:53 AM    Post subject: Reply with quote

i m using custom database created in sql server with only two tables.

one for "Person's Info" on the top of the document.
other for "Tests Record" on bottom of the document.
Back to top
View user's profile Send private message Yahoo Messenger
VB_Developer
Newbie


Joined: 25 Feb 2006
Posts: 18
Location: Hyderabad, India

PostPosted: Feb 27th, 2006 07:34 AM    Post subject: Reply with quote

Hi,
Could you post your database script her, so i could take the script and create the database and give the solution as soon as possible.

Thanks

Deepak
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic