Discussion Locked

Coma Delimited Database in VB 6.0

0 helpful
11 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have just started learning Visual Basic 6.0. I love and am having lots of fun with it. However, it doesn't take a genius to see that it's true power lies in database manipulation. Which brings me to the crux of my problem. I recently purchased Office 2000 Small Business Tools and VB 6.0. I am broke. No more money. However my Office 2000 did not come with Access. This makes it very difficult to create databases. I have heard that you can use a text editor (notepad) to create (I hope this is right) Coma Delimited Databases. If this is correct could someone please tell me where, or show me, how I could make a simple database?

Thank You

11 replies

by dennisbv

I don't know about the text editor. But in VB 6 you can use the Visual Data Manager to create a database . From the data manager choose new from the menu choose the database and choose a location. and follow the prompts.

by dan_cohen

You really can't create an Access database with a comma delimited test file, although if you already had a database, you could populate it with the data residing in your text file.
If you haven't seen a comma delimted text file it looks something like this:
Field1,Field2,Field3
DataField1,DataField2,DataField3

The first row creates the field names and the corresponding rows underneathe supply the data in the SAME order.

by mark.thomson

If you have VB6 Professional or better then
you have the MS Database Acces Objects (DAO) library which allows you to create and manipulate .MDB files (the MS Access database format) from VB. Having MS Access simplifies things a lot but is not necessary.

by gbworld

If you want to play with data, use Excel instead. It is also perfectly legal to use the .mdb files that ship as samples with Visual Basic (Northwind comes to mind) and program against it as long as you have the proper OLE-DB driver. To get the latest driver, go to http://www.microsoft.com/data and download.

Having Access on the machine will certainly make your life easier, but it is not mandatory.

As far as the question. Can you use comma delmited files as a data source? Yes, there are OLE-DB providers for doing this. Is it worth the hassle? I would say no. There are some articles on doing this on the MSDN CD that ships with VB. Do not expect a lot of information, as this is really unorthodox.

I agree with you that the real strength of VB is in data. Learn n-tier application development and you will be investing in your programming future.

GB

by slhsolutions

Visual Basic 6.0 should have shipped with the add-in VisData. It is fairly powerful considering it is free with VB! You should be able to substitute it for Access, however Access is probably slightly easier especially if you already know it.

This discussion is closed to new replies.