I am converting a database from Access 2002 back to Access 97 and much of the code is written in ADO. As opposed to having to convert all of the code to DAO I would prefer to just keep the ADO format. In converting I have noticed that Access 97 does not recognize CurrentProject. I have the following references selected:
Microsoft ActiveX Data Objects 2.5 Library
Microsft ADO Ext. 2.5 for DDL and Security
Microsoft DAO 3.6 Object Library
Visual Basic for Applications
Microsoft Access 8.0 Object Library
From reading around I am lead to believe that CurrentProject doesn't exist in Access 97 even though ADO does. Does anyone knows of any other ADO code that accomplishes the same thing in ADO, or any other references that I may be missing to allow CurrentProject to work in Access 97?
A small example of in context would be this example which allows the changing of user passwords:
Dim cat As ADOX.Catalog
Dim usr As ADOX.User
Set cat = New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
Set usr = cat.Users(strUser)
usr.ChangePassword strOld, strNew
Any help would be greatly appreciated.
Thanks,
Tom
Microsoft ActiveX Data Objects 2.5 Library
Microsft ADO Ext. 2.5 for DDL and Security
Microsoft DAO 3.6 Object Library
Visual Basic for Applications
Microsoft Access 8.0 Object Library
From reading around I am lead to believe that CurrentProject doesn't exist in Access 97 even though ADO does. Does anyone knows of any other ADO code that accomplishes the same thing in ADO, or any other references that I may be missing to allow CurrentProject to work in Access 97?
A small example of in context would be this example which allows the changing of user passwords:
Dim cat As ADOX.Catalog
Dim usr As ADOX.User
Set cat = New ADOX.Catalog
cat.ActiveConnection = CurrentProject.Connection
Set usr = cat.Users(strUser)
usr.ChangePassword strOld, strNew
Any help would be greatly appreciated.
Thanks,
Tom