Question : transfer Access 2003 using VBA to Access 2007 on another computer

I know alot about Access, but not about Visual Basic.  I have a client with Access 2003 database designed with VBA on an XP computer.  I want to transfer that database to her new computer (Windows Vista and Access 2007).  I have copied the database over to the new computer, but it can't find libraries etc.  Since I have never done this I am trying to decide whether to save the database as an MDE file (but will Access 2007 read the MDE database and will she be able to add more client information and new clients into this database); or whether to copy all of the program files and windows files on her old computer to her new computer and hope that Access 2007 will be able to open the old Access 2003 db with Access 2007(will that work? or will paths still be missing).  The important thing is that she be able to continue to use this database, it's forms, queries and reports.  She doesn't need to redo any of the VBA language or make changes.  Thanks,  Lor2rain

Answer : transfer Access 2003 using VBA to Access 2007 on another computer

Up to & including 2003 a database would be a mdb (or a compiled version that you can't amend as a mde. Access 2007 has introduced new file formats (accdb and accde). It will, however, run Access 2003 mdb's in that format.

To fix the libraries, open the mdb in 2007 while holding down the shift key. This should open the database without running and macros or code. Goto the modules part and open any module. The VBA window will open. Goto the Tools > References and check if any ticked libraries are missing. If so, note their names and deselect them. Then close references and re-open. Scroll the list and finmd them and tick them again. When all are done, close the references window & compile the database. This should fix it.

Random Solutions  
 
programming4us programming4us