Help - Search - Members - Calendar
Full Version: Problem Opening Access Programatically
BleepingComputer.com > Software > Programming
   
budasbli
Hi

My application is distibuted to users who may be running any version of MSOffice 97 or above. My development machine runs 97 as the 'lowest common denominator'. My VB5 application populates tables in an Access database then opens the database to run a predefined Access report. I have 2 problems. 1) whenever I issue a new reports database to someone using later that MS Office 97 the program won't open the database unles it has been 'manually' opened (without converting it) first via Access. This is annoying more than anything else but problem 2) is that sometimes Access gives the messag to the effect that it has automatically converted the VB5 code in the database - don't know what code this could be - at which point my application won't open it at all - no error message either.

Help please?
groovicus
As far as problem 2, databases can use stored procedures, but those procedures are not in VB, at least as far as I know. Perhaps they are (written in VB) for Access? SQL uses , well, SQL syntax to create procedures. Of course, that is an assumption based on your interpretation of the error message. I can't think of any other reason for an error like that.
Keithuk
It sounds like your problem is your references to the database. If you are using Office 97 then depending on what you are using to access this database, ADO, DAO or Adodc? You will need to reference Microsoft DAO 3.51 Object Library (Dao350.dll) or Microsoft ActiveX Data Objects 2.5 Library (msado25.tlb).

There should be any need to convert the database. Providing these files are included in your installation package I don't see a problem. thumbup2.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.