ASP Access Recordset Paging

This is a discussion on ASP Access Recordset Paging within the Inetserver forums in Microsoft Tools category; e.l. wrote: > Thanks for the quick reply. > > 1. I use MS Office Access 2003 (11.8166.8202) SP3 > > 2. The code of my connection to the DB and the RS: > > dim SQLstr > set con = server.CreateObject ("adodb.connection") > con.open "provider = microsoft.jet.oledb.4.0; data source = > c:\ak\Akel.mdb" You are not using odbc, so you should have removed those groups from the crosspost. > > set rs = server.CreateObject ("adodb.recordset") > SQLstr = "SELECT * FROM tblProperty" > rs.Open SQLstr, con, 3,3 I haven't used Access in a while and I don't have time to ...

Go Back   Application Development Forum > Microsoft Tools > Inetserver

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #11  
Old 08-25-2008, 10:01 AM
Bob Barrows [MVP]
Guest
 
Default Re: ASP Access Recordset Paging

e.l. wrote:
> Thanks for the quick reply.
>
> 1. I use MS Office Access 2003 (11.8166.8202) SP3
>
> 2. The code of my connection to the DB and the RS:
>
> dim SQLstr
> set con = server.CreateObject ("adodb.connection")
> con.open "provider = microsoft.jet.oledb.4.0; data source =
> c:\ak\Akel.mdb"


You are not using odbc, so you should have removed those groups from the
crosspost.
>
> set rs = server.CreateObject ("adodb.recordset")
> SQLstr = "SELECT * FROM tblProperty"
> rs.Open SQLstr, con, 3,3


I haven't used Access in a while and I don't have time to test this,
but, from what I can see, you should be getting a static server-side
cursor with optimistic locking. I really cannot see why the provider is
giving you the default forward-only, read-only cursor. My suggestion
would be to change the cursor location to adUseClient (3) which will
force a static cursor to be opened.

Oh, and make sure all database users have Modify permissions for that ak
folder. If your website uses Anonymous access, then the
IUSR_<machine_name> account needs to be granted that permission.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Reply With Quote
  #12  
Old 08-25-2008, 11:06 AM
e.l.
Guest
 
Default Re: ASP Access Recordset Paging

Thanks a lot! You've been really helpful.

What eventually solved the problem was moving the DB from
C:\akel\akel.mdb
to
D:\akel\akel.mdb

I still don't understand why I didn't have access to disc C.
Reply With Quote
  #13  
Old 08-25-2008, 11:06 AM
e.l.
Guest
 
Default Re: ASP Access Recordset Paging

Thanks a lot! You've been really helpful.

What eventually solved the problem was moving the DB from
C:\akel\akel.mdb
to
D:\akel\akel.mdb

I still don't understand why I didn't have access to disc C.
Reply With Quote
  #14  
Old 09-15-2008, 10:07 PM
Bullschmidt
Guest
 
Default Re: ASP Access Recordset Paging

I'm going to guess that the underlying recordset is read-only such as
based upon multiple tables...

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips

*** Sent via Developersdex http://www.developersdex.com ***
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 05:01 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.