What database?

Mars

Honorary Master
Joined
Feb 4, 2006
Messages
11,452
Reaction score
1,149
Location
Cape Town
I have an excel workbook I use to keep track of stock and all the daily transactions that take place in my business. It works well, but as it has grown its become a bit slow. Its also pretty complex, using a huge amount of formula's to keep track of the stock taken from invoices, warranties, ect, ect. This makes changing the workbook kinda stressful, because I have mistyped a formula once or twice, causing huge havoc when stock does not balance a the end of the day, or, the cash up does not balance. Its also getting a bit slow, sometimes taking up to two minuts to calculate the vb on opening.

I asked someone who knows more about excel than myself how to streamline it and I was told that I have outgrown excel and that I should convert to a database. Its also sitting at about 20 mb.

Now what he said was convert, but I'm sure what I will need to do is to redo the whole thing in some kind of database.

Now my question. What database should I be looking at?

The spreadsheet (along with two other programs) is one of the major things holding me from converting my business to Ubuntu. I have tried to run the spreadsheet in OpenOffice, but it crashes after a bit. Also (obviously) none of the vb works. Calc, I think, is just a little light for the workbook.

The database seems simple to me:

It needs to keep track of:

Invoices (not actual invoicing just a record of them)
Credit notes
Stock
Warranties
Purchases (from one major supplier)
Daily expenses (soap and other such stuff)

I would need the stock from the purchases to go into stock and the stock from the invoices to be removed from stock, we also need the scraps we receive on the invoice to received into stock.
I would also need to be able to put in a payment method so I could cash-up at the end of the day.

There are a couple of other simple things, but that's the gist of it.

As it is now, I keep a spreadsheet for every month so I can go back and have a look at the cashup for the 5th of February 09 and see exactly what happened. An issue with that is that anyone could go back and edit it (in the current month).A Database would sort that out.

MySQL seems like the obvious answer, but I don't know any SQL. I have looked at OOo's Base, but since I have not worked with databases before it seems a bit over my head, and there is little documentation on it. I have done a tutorial or two and tho they tell you what to do, they don't say why so its impossible for me to adapt that to anything I want to do.
I'm sure I could get Access to work, but I'm trying to get away from MS.

Am I taking on something I won't be able to do? Should I just stick to excel?
Or redo it to work with OOo's Calc?
 
The problem with moving to a database, be it MySQL, PostgreSQL, SQL Server Express or whatever, is that they will only store your data. You'll still need to build some sort of front end to capture new data and generate whatever reports you want (although that part could be done with SQL queries) either way it's pretty tedious.

Access is a possible solution because you can use your VBA knowledge to build forms inside access, but this also is not ideal.

Have you considered moving to a lightweight accounting package? There was a thread about them a while ago, look here
 
Why don't you use an Accounting/Invoicing Program, it should be able to handle all that for you.

There's Pastel, TurboCASh which is free etc
 
If you want, you can send me the file and I will have a look, unless it is sensitive data.

I would go SQL Server Express and create a web or windows front end. Shout if you need any help with it.
 
Why don't you use an Accounting/Invoicing Program, it should be able to handle all that for you.

There's Pastel, TurboCASh which is free etc

That is a good option if your stuff is simple. If it is specialised you may need a custom app.

You can get Pastel My Business for a couple of hundred rand. Also, you can download MS Accounting Express for free.
 
What database should I be looking at?

The spreadsheet (along with two other programs) is one of the major things holding me from converting my business to Ubuntu.

Invoices (not actual invoicing just a record of them)
Credit notes
Stock
Warranties
Purchases (from one major supplier)
Daily expenses (soap and other such stuff)

I would need:
stock from the purchases to go into stock
stock from the invoices to be removed from stock
scraps we receive on the invoice to received into stock.
payment method so I could cash-up at the end of the day.

I'm sure you have specific reasons for not using a one size fits all accounting package, and wanting to go the Linux route. Bearing that in mind -

You can insert and read data straight from excel into a database via VBA and ODBC which might help eventually to migrating to linux.

There's ODBC drivers for mySQL for that, also look for mySQL Query browser and Workbench which make things a bit easier to work with.

Since your data would all eventually be in mySQL this leaves your future options open to a webbrowser front end on your intranet with PHP and Apache. Quite a large task.

I suggest going through a good book on SQL, particularly regarding normalizing your data.
 
I have looked at using an accounting package.. I have TurboCash installed. I know it runs just fine with Wine.
My issue is that they don't keep track of the daily cash-up, and they don't have a facility to keep record of a daily stock take. Also I get a scrap back (into stock) with almost every sale. I would have to make a credit note for every one... eish!..

Maybe the big thing is that I like to know how the whole shebang works, and with accounting packages they all seem to be telling me what I can't do...

The front end I'm not afraid of. Also I'm sure I could design the reports ok.
I have a book on MySQL it seems to be linked to PHP tho? could I use MySQL without PHP? I already have a hosted site that runs MySQL, Apache, and PHP. I would love to be able to do it onlne, but yes a HUGE task for me.

Otherwise it seems I will just have to use the scripting language for OOo (I think its Basic), and rewrite the workbook for that.
 
If you want, you can send me the file and I will have a look, unless it is sensitive data.

I would go SQL Server Express and create a web or windows front end. Shout if you need any help with it.

Thanks ! :D
I would appreciate your opinion!
I will empty the sensitive data from the sheet and pm you the link tonight.
 
Yes you can use mySQL with most other scripting languages, particularly with Python. Not sure but I think it's javascript that Open Office uses.
 
I would suggest using tools like workbench etc and *just* concentrating on the database. Convert all your data from excel into the database and then work on normalising it. Depending on how complex your formulas are they shouldn't be too hard to recreate in SQL. Then for all the calculated columns you can start off by just writing update scripts to do the calculations and "save" the results, and then later on you can work on using another method, either something you run once a day or perhaps triggers.
 
Since you are restricted from going linux(other software you talk about).. I recommend SQL Express.... up to 4 gb database and 5 users should be 100%...

and very easy to connect to excel through vba.
 
How hard is MySQL compared to MS Access?

MySQL is pretty easy to use, especially if you use the GUI tools (workbench, admin, etc).

There is also a lot of examples and help all over the web.
 
Top
Sign up to the MyBroadband newsletter
X