Database Question

Just starting out? Need help? Post your questions and find answers here.
Maximus_Primal
User
User
Posts: 12
Joined: Sat Dec 18, 2004 7:01 pm
Location: England, UK
Contact:

Database Question

Post by Maximus_Primal »

I want to create a program for collecting some items I have. Originally I was going to create my own basic database files but after leaving the program alone for 6 months (to do other projects) I have returned to realise I have no idea what the hell I was up to! :)

So my idea is now to create 2 database files (one for base information that is only read, and one for sotring items I have) and modify the latter in PB as required. I have acess to Microsoft Office at work so I can create the databases in Microsoft Access if that is any good. I want to keep the interface code as that still feels good, but just alter the database side of things to something more sensible...

Can anyone give me an idea of if this is a good way of doing it and if so any good examples of accessing and modifying Microsoft Access databases in PB. If this is not the best way of doing things, can someone suggest some ideas of how to do this with minimum fuss.

Thanks

Max
Real Power Comes From Sharing With Those Who Think They Have It All!
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

Hi @Maximus_Primal ,

a good place to search for SQL examples is the purearea at http://www.purearea.net
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1285
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Post by Paul »

MDB_Lib from http://www.pureproject.net is a great place to start. It allows you to easily create MDB databases and has example code that creates/opens/builds tables/puts data in tables/searches

By the way, MDB (MS Access databases) can be created on any Windows platform. The ODBC drives ship with Windows. Programs like Office or Access are not required to use/create MDB databases.
Image Image
Maximus_Primal
User
User
Posts: 12
Joined: Sat Dec 18, 2004 7:01 pm
Location: England, UK
Contact:

Post by Maximus_Primal »

Thanks. I have downloaded the library mentioned and will take a look at it better this week. I see that it creates a database file in the example code so I am hoping that reading the database back into my code will be just as simple!

Thanks for the heads up on this.

Max
Real Power Comes From Sharing With Those Who Think They Have It All!
Post Reply