Wrox Home  
Search P2P Archive for: Go

  Return to Index  

access thread: Migration from Access 2000 to SQL Server 7.0


Message #1 by "harbinder bansal" <harbinder.bansal@b...> on Mon, 29 Jul 2002 11:44:16
I?ve just used the upsizing tool of access 2000 to upsize my database from 
access to SQL server 7.0. I now have an access project with a back-end sql 
database.

My database has now stopped working I?m getting errors on the following 
code

Run Time error ?91?
Object variable or with block variable not set

This error occurs on the following code:

    Dim dblocal As Database
    Dim recCompanyInfo As Recordset
    Set dblocal = CurrentDb()

    Set recCompanyInfo = dblocal.OpenRecordset("tblCompanyInfo", 
dbOpenDynaset)

 
Can anyone suggest how I get around this.

Regards H
Message #2 by "Antony Carr" <CARRAJ@w...> on Mon, 29 Jul 2002 11:43:41 +0100
Access projects don't support DAO VBA. You will need to use ADO to
interogate your database. You will need to dim your recordset as
ADODB.recordset. I would suggest searching the web for ADO Access help.



  Return to Index