SQL multiple join statement

For multi-table joins, you have to nest the extra joins in brackets: SELECT … FROM ((origintable JOIN jointable1 ON …) JOIN jointable2 ON …) JOIN jointable3 ON … basically, for every extra table you join past the first, you need a bracket before the original ‘FROM’ table, and a closing bracket on the matching JOIN … Read more

How can I convert an MDB (Access) file to MySQL (or plain SQL file)?

You want to convert mdb to mysql (direct transfer to mysql or mysql dump)? Try a software called Access to MySQL. Access to MySQL is a small program that will convert Microsoft Access Databases to MySQL. Wizard interface. Transfer data directly from one server to another. Create a dump file. Select tables to transfer. Select … Read more

Get length of array?

Length of an array: UBound(columns)-LBound(columns)+1 UBound alone is not the best method for getting the length of every array as arrays in VBA can start at different indexes, e.g Dim arr(2 to 10) UBound will return correct results only if the array is 1-based (starts indexing at 1 e.g. Dim arr(1 to 10). It will … Read more

VBA check if object is set

If obj Is Nothing Then ‘ need to initialize obj: ‘ Set obj = … Else ‘ obj already set / initialized. ‘ End If Or, if you prefer it the other way around: If Not obj Is Nothing Then ‘ obj already set / initialized. ‘ Else ‘ need to initialize obj: ‘ Set … Read more

How do you use version control with Access development?

We wrote our own script in VBScript, that uses the undocumented Application.SaveAsText() in Access to export all code, form, macro and report modules. Here it is, it should give you some pointers. (Beware: some of the messages are in german, but you can easily change that.) EDIT: To summarize various comments below: Our Project assumes … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)