Re: Problem converting a VB6 program to use an Access 2000 db instead of an Access 97 db

Tech-Archive recommends: Speed Up your PC by fixing your registry



Why did you change your connection string, and to what?

This is the connection string I typically use for connecting to Access (Any
version) and I haven't ever had a problem.

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<filepath>;Persist Security
Info=False



<maxime.rainville@xxxxxxxxx> wrote in message
news:1171477879.785450.98870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I've an old VB6 program design to use a Access 97 database. We've
recently decided to convert the program so it would use an Access 2000
database instead.

So I converted our database to the access 2000 format, changed the
connection string, ... and of course it didn't work.

It looks like part of the program works, but it crashes when we try to
read data from a record set. Were getting this error:

Run-time error '3704'
Operation is not allowed when the object is closed.

Any ideas on what might be causing this?



.



Relevant Pages

  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... database without knowing anything beforehand except the driver name. ... need a connection string and different data sources use different connection ... ODBC, ADO, and VB Script. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... Depending on the database you are using, ... you need to know the basics of the connection string and can populate ... no. the login box which you are talking about was provided to ODBC ... When the user exits the dialog box, the driver connects ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Change Connection String at runtime.
    ... easily moved to another database, or have versions for each database. ... connection string to the connectionobject before the connection opens. ... *The Server IP number is different for every deployment. ... It appears that the generated code uses the application settings to ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Cannot display ODBC login prompt - want to connect without DSN
    ... Depending on the database you are using, ... database without knowing anything beforehand except the driver name. ... you need to know the basics of the connection string and can populate ... no. the login box which you are talking about was provided to ODBC ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Change Connection String at runtime.
    ... exposes custom objects that are implemented to use the custom data access ... easily moved to another database, or have versions for each database. ... and protocols each data source exposes. ... connection string to the connectionobject before the connection opens. ...
    (microsoft.public.dotnet.framework.adonet)