Hi Gang
I am using the code below to try and update an access database in my VB code. I used the same code on another project and was able to make changes to the database. The database I am using is access 2000. I am also having problems with my ASP connecting to my databases now that I have converted the database from access 97 to 2000. I am wondering if my system is having issues of some kind. The error message that I receive from my code is run time error 3219.
Any help would be greatly appreciated.
Ken
PS I have included my code and the error message I get from my ASP.
'set database information for recording that a coupon has been printed
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbCouponworx = wrkJet.OpenDatabase("c:\inetpub\ & CompanyNumber & ".mdb"
'get coupon information from the database
MySQL = "Insert into CouponReport (KioskID, MemberID, CouponID, PrintTime) Select " _
& "'" & KioskID & "', '" & MemberID & "', " & CouponIDs(Index) & ", #" & Now & "#;"
Set rsCoupons = dbCouponworx.OpenRecordset(MySQL, dbOpenDynaset, dbOpenDynamic)
Here is the error message I get from my ASP
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x4d4 Thread 0x5a0 DBC 0x2af2574 Jet'.
/coupons/template1.asp, line 7
I am using the code below to try and update an access database in my VB code. I used the same code on another project and was able to make changes to the database. The database I am using is access 2000. I am also having problems with my ASP connecting to my databases now that I have converted the database from access 97 to 2000. I am wondering if my system is having issues of some kind. The error message that I receive from my code is run time error 3219.
Any help would be greatly appreciated.
Ken
PS I have included my code and the error message I get from my ASP.
'set database information for recording that a coupon has been printed
Set wrkJet = CreateWorkspace("", "admin", "", dbUseJet)
Set dbCouponworx = wrkJet.OpenDatabase("c:\inetpub\ & CompanyNumber & ".mdb"
'get coupon information from the database
MySQL = "Insert into CouponReport (KioskID, MemberID, CouponID, PrintTime) Select " _
& "'" & KioskID & "', '" & MemberID & "', " & CouponIDs(Index) & ", #" & Now & "#;"
Set rsCoupons = dbCouponworx.OpenRecordset(MySQL, dbOpenDynaset, dbOpenDynamic)
Here is the error message I get from my ASP
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x4d4 Thread 0x5a0 DBC 0x2af2574 Jet'.
/coupons/template1.asp, line 7