Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

error 91
I am using asp page and a VB component

VB component has a simple method which inserts a record into Access databse

like

Dim conn As New ADODB.Connection
Dim cmd As New ADODB.Command
conn.Open strDSN
Set cmd.ActiveConnection = conn
cmd.CommandType = adCmdText

strQuery = "Insert into Table1 values ("
strQuery = strQuery + "'" & strID & "',"
strQuery = strQuery + "'" & strName & "')"

cmd.CommandText = strQuery

cmd.Execute

<after this command I get error 91>

When I test my component from another VB cient then it works great but
getting error 91 when called from ASP

any clues...

thanks in advance



Report this thread to moderator Post Follow-up to this message
Old Post
abcd
06-01-05 08:55 PM


Re: error 91
I have found the solution....

my .mdb files needs to have IUSR_<MACHINENAME> permissions !!!

cheers !


"abcd" <abcd@abcd.com> wrote in message
news:utDjOpsZFHA.2940@tk2msftngp13.phx.gbl...
>I am using asp page and a VB component
>
> VB component has a simple method which inserts a record into Access
> databse
>
> like
>
> Dim conn As New ADODB.Connection
> Dim cmd As New ADODB.Command
> conn.Open strDSN
> Set cmd.ActiveConnection = conn
> cmd.CommandType = adCmdText
>
> strQuery = "Insert into Table1 values ("
> strQuery = strQuery + "'" & strID & "',"
> strQuery = strQuery + "'" & strName & "')"
>
> cmd.CommandText = strQuery
>
> cmd.Execute
>
> <after this command I get error 91>
>
> When I test my component from another VB cient then it works great but
> getting error 91 when called from ASP
>
> any clues...
>
> thanks in advance
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
abcd
06-01-05 08:55 PM


Re: error 91
database permissions ?

http://www.powerasp.com/content/new...permissions.asp


"abcd" <abcd@abcd.com> wrote in message
news:utDjOpsZFHA.2940@tk2msftngp13.phx.gbl...
>I am using asp page and a VB component
>
> VB component has a simple method which inserts a record into Access
> databse
>
> like
>
> Dim conn As New ADODB.Connection
> Dim cmd As New ADODB.Command
> conn.Open strDSN
> Set cmd.ActiveConnection = conn
> cmd.CommandType = adCmdText
>
> strQuery = "Insert into Table1 values ("
> strQuery = strQuery + "'" & strID & "',"
> strQuery = strQuery + "'" & strName & "')"
>
> cmd.CommandText = strQuery
>
> cmd.Execute
>
> <after this command I get error 91>
>
> When I test my component from another VB cient then it works great but
> getting error 91 when called from ASP
>
> any clues...
>
> thanks in advance
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Kyle Peterson
06-02-05 01:55 AM


Re: error 91
oops.. problem already solved


"Kyle Peterson" <kpete23@hotmail.com> wrote in message
news:O1JBj7uZFHA.3220@TK2MSFTNGP14.phx.gbl...
> database permissions ?
>
> [url]http://www.powerasp.com/content/new/windows_2003_server_and_permissions.asp[/url
]
>
>
> "abcd" <abcd@abcd.com> wrote in message
> news:utDjOpsZFHA.2940@tk2msftngp13.phx.gbl... 
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Kyle Peterson
06-02-05 01:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:45 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.