Accessing data from an MS Access database on a remote web server

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  2. Similar Questions and Discussions

    1. Accessing remote server
      Hello, I'm trying to access MySQL server version 5.0.22 with the MySQL Administrator version 1.1.9. This MySQL server is running on a remote...
    2. Accessing remote MS Access DB thru IIS App
      Hi I have a VB 6 IIS Application running as a compiled DLL under IIS 5.0 on Win2K. It uses the ADO 2.5 library to give users OLEDB and ODBC...
    3. Accessing a script on a remote server
      I have a script set up on one server which queries the mysql server there and creates html code with the results. How do I access this and include...
    4. problems accessing a remote (linux) database from a windows gui
      Hi all I am trying to access a database created on a linux system running db/2 8.1 fp3 from a windows gui running the same fp of 8.1 the db was...
    5. Subform data select on access/ sql server database
      Hi, I have a client/server accessxp/sql server 2000 database. On the main form there is a subform that uses a stored procedure to collect a set...
  3. #2

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  4. #3

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  5. #4

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  6. #5

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  7. #6

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  8. #7

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.

    Thanks,
    Tom
    Tom Guest

  9. #8

    Default Accessing data from an MS Access database on a remote web server

    Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.
    Tom Guest

  10. #9

    Default RE: Accessing data from an MS Access database on a remote web server

    Please forgive the MULTIPLE posts. I did NOT do that on purpose. I kept getting a message stating that my message did not go through. Sorry!

    "Tom" wrote:
    > Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add the functionality of making the application send the Registered User ID and Serial Number to my web site and verify from an MS Access database that the software is registered. It seems simple and it works fine with a local database but I can't seem to get it to work on a remote database. I need to get this working on MS Access (SQL Server is easy but not an option at this time). VB .NET or ASP .NET are options on the client side only! My host does not support them. I've been scouring the net for a week now and I am still at a loss. It seems that everything I try generates a "3709" error.
    >
    > Thanks,
    > Tom
    Tom Guest

  11. #10

    Default Re: Accessing data from an MS Access database on a remote web server

    Tom wrote:
    > Please forgive me if I have posted this to the wrong group! I have
    > written a VB6 application that works fine. With that said, I would
    > like to add the functionality of making the application send the
    > Registered User ID and Serial Number to my web site and verify from
    > an MS Access database that the software is registered. It seems
    > simple and it works fine with a local database but I can't seem to
    > get it to work on a remote database. I need to get this working on
    > MS Access (SQL Server is easy but not an option at this time). VB
    > .NET or ASP .NET are options on the client side only! My host does
    > not support them. I've been scouring the net for a week now and I am
    > still at a loss. It seems that everything I try generates a "3709"
    > error.
    We don't have all the error numbers memorized. You need to tell us the text
    of the message as well as the number, especially since some error numbers
    can apply to multiple errors.

    3709 does not sound like an ADO error code. Are you using ADO? Or are you
    using DAO?

    I don't understand how you can expect anyone to debug your code without
    seeing it. At least show us your connection string.



    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  12. #11

    Default Re: Accessing data from an MS Access database on a remote web serv

    Sorry,

    The exact error text is:

    Run-time error'3709':
    The connection cannot be used to perform this operation. It is either closed or invalid in this context.

    Thanks

    "Bob Barrows [MVP]" wrote:
    > Tom wrote:
    > > Please forgive me if I have posted this to the wrong group! I have
    > > written a VB6 application that works fine. With that said, I would
    > > like to add the functionality of making the application send the
    > > Registered User ID and Serial Number to my web site and verify from
    > > an MS Access database that the software is registered. It seems
    > > simple and it works fine with a local database but I can't seem to
    > > get it to work on a remote database. I need to get this working on
    > > MS Access (SQL Server is easy but not an option at this time). VB
    > > .NET or ASP .NET are options on the client side only! My host does
    > > not support them. I've been scouring the net for a week now and I am
    > > still at a loss. It seems that everything I try generates a "3709"
    > > error.
    >
    > We don't have all the error numbers memorized. You need to tell us the text
    > of the message as well as the number, especially since some error numbers
    > can apply to multiple errors.
    >
    > 3709 does not sound like an ADO error code. Are you using ADO? Or are you
    > using DAO?
    >
    > I don't understand how you can expect anyone to debug your code without
    > seeing it. At least show us your connection string.
    >
    >
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
    >
    Tom Guest

  13. #12

    Default Re: Accessing data from an MS Access database on a remote web serv

    I still need to see the lines of code that cause this error.

    Bob Barrows
    Tom wrote:
    > Sorry,
    >
    > The exact error text is:
    >
    > Run-time error'3709':
    > The connection cannot be used to perform this operation. It is
    > either closed or invalid in this context.
    >
    > Thanks
    >
    > "Bob Barrows [MVP]" wrote:
    >
    >> Tom wrote:
    >>> Please forgive me if I have posted this to the wrong group! I have
    >>> written a VB6 application that works fine. With that said, I would
    >>> like to add the functionality of making the application send the
    >>> Registered User ID and Serial Number to my web site and verify from
    >>> an MS Access database that the software is registered. It seems
    >>> simple and it works fine with a local database but I can't seem to
    >>> get it to work on a remote database. I need to get this working on
    >>> MS Access (SQL Server is easy but not an option at this time). VB
    >>> .NET or ASP .NET are options on the client side only! My host does
    >>> not support them. I've been scouring the net for a week now and I
    >>> am
    >>> still at a loss. It seems that everything I try generates a "3709"
    >>> error.
    >>
    >> We don't have all the error numbers memorized. You need to tell us
    >> the text
    >> of the message as well as the number, especially since some error
    >> numbers
    >> can apply to multiple errors.
    >>
    >> 3709 does not sound like an ADO error code. Are you using ADO? Or
    >> are you
    >> using DAO?
    >>
    >> I don't understand how you can expect anyone to debug your code
    >> without
    >> seeing it. At least show us your connection string.
    >>
    >>
    >>
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so
    >> I
    >> don't check it very often. If you must reply off-line, then remove
    >> the "NO SPAM"
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  14. #13

    Default Re: Accessing data from an MS Access database on a remote web serv

    Dim rs As New ADODB.Recordset


    rs.Open "http://www.domain.com/check/test.asp"
    'Do While Not rs.EOF
    ' Response.write rs(1) & vbCrLf
    ' rs.MoveNext
    'Loop

    where test.asp is an asp page on the web server. If I go directly to [url]http://www.domain.com/check/test.asp[/url] the page loads fine and displays the information properly.

    Thanks

    "Bob Barrows [MVP]" wrote:
    > I still need to see the lines of code that cause this error.
    >
    > Bob Barrows
    > Tom wrote:
    > > Sorry,
    > >
    > > The exact error text is:
    > >
    > > Run-time error'3709':
    > > The connection cannot be used to perform this operation. It is
    > > either closed or invalid in this context.
    > >
    > > Thanks
    > >
    > > "Bob Barrows [MVP]" wrote:
    > >
    > >> Tom wrote:
    > >>> Please forgive me if I have posted this to the wrong group! I have
    > >>> written a VB6 application that works fine. With that said, I would
    > >>> like to add the functionality of making the application send the
    > >>> Registered User ID and Serial Number to my web site and verify from
    > >>> an MS Access database that the software is registered. It seems
    > >>> simple and it works fine with a local database but I can't seem to
    > >>> get it to work on a remote database. I need to get this working on
    > >>> MS Access (SQL Server is easy but not an option at this time). VB
    > >>> .NET or ASP .NET are options on the client side only! My host does
    > >>> not support them. I've been scouring the net for a week now and I
    > >>> am
    > >>> still at a loss. It seems that everything I try generates a "3709"
    > >>> error.
    > >>
    > >> We don't have all the error numbers memorized. You need to tell us
    > >> the text
    > >> of the message as well as the number, especially since some error
    > >> numbers
    > >> can apply to multiple errors.
    > >>
    > >> 3709 does not sound like an ADO error code. Are you using ADO? Or
    > >> are you
    > >> using DAO?
    > >>
    > >> I don't understand how you can expect anyone to debug your code
    > >> without
    > >> seeing it. At least show us your connection string.
    > >>
    > >>
    > >>
    > >> --
    > >> Microsoft MVP - ASP/ASP.NET
    > >> Please reply to the newsgroup. This email account is my spam trap so
    > >> I
    > >> don't check it very often. If you must reply off-line, then remove
    > >> the "NO SPAM"
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
    >
    Tom Guest

  15. #14

    Default Re: Accessing data from an MS Access database on a remote web serv

    Tom,
    You can't use an asp page as the source for a recordset. What made you think
    you could?

    Tom wrote:
    > Dim rs As New ADODB.Recordset
    >
    >
    > rs.Open "http://www.domain.com/check/test.asp"
    > 'Do While Not rs.EOF
    > ' Response.write rs(1) & vbCrLf
    > ' rs.MoveNext
    > 'Loop
    >
    > where test.asp is an asp page on the web server. If I go directly to
    > [url]http://www.domain.com/check/test.asp[/url] the page loads fine and displays
    > the information properly.
    >
    > Thanks
    >
    > "Bob Barrows [MVP]" wrote:
    >
    >> I still need to see the lines of code that cause this error.
    >>
    >> Bob Barrows
    >> Tom wrote:
    >>> Sorry,
    >>>
    >>> The exact error text is:
    >>>
    >>> Run-time error'3709':
    >>> The connection cannot be used to perform this operation. It is
    >>> either closed or invalid in this context.
    >>>
    >>> Thanks
    >>>
    >>> "Bob Barrows [MVP]" wrote:
    >>>
    >>>> Tom wrote:
    >>>>> Please forgive me if I have posted this to the wrong group! I
    >>>>> have
    >>>>> written a VB6 application that works fine. With that said, I
    >>>>> would
    >>>>> like to add the functionality of making the application send the
    >>>>> Registered User ID and Serial Number to my web site and verify
    >>>>> from
    >>>>> an MS Access database that the software is registered. It seems
    >>>>> simple and it works fine with a local database but I can't seem to
    >>>>> get it to work on a remote database. I need to get this working
    >>>>> on
    >>>>> MS Access (SQL Server is easy but not an option at this time). VB
    >>>>> .NET or ASP .NET are options on the client side only! My host
    >>>>> does
    >>>>> not support them. I've been scouring the net for a week now and I
    >>>>> am
    >>>>> still at a loss. It seems that everything I try generates a
    >>>>> "3709"
    >>>>> error.
    >>>>
    >>>> We don't have all the error numbers memorized. You need to tell us
    >>>> the text
    >>>> of the message as well as the number, especially since some error
    >>>> numbers
    >>>> can apply to multiple errors.
    >>>>
    >>>> 3709 does not sound like an ADO error code. Are you using ADO? Or
    >>>> are you
    >>>> using DAO?
    >>>>
    >>>> I don't understand how you can expect anyone to debug your code
    >>>> without
    >>>> seeing it. At least show us your connection string.
    >>>>
    >>>>
    >>>>
    >>>> --
    >>>> Microsoft MVP - ASP/ASP.NET
    >>>> Please reply to the newsgroup. This email account is my spam trap
    >>>> so
    >>>> I
    >>>> don't check it very often. If you must reply off-line, then remove
    >>>> the "NO SPAM"
    >>
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so
    >> I
    >> don't check it very often. If you must reply off-line, then remove
    >> the "NO SPAM"
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  16. #15

    Default Re: Accessing data from an MS Access database on a remote web serv

    Many examples on google! If that won't work what is the best way to achieve my goal?


    "Bob Barrows [MVP]" wrote:
    > Tom,
    > You can't use an asp page as the source for a recordset. What made you think
    > you could?
    >
    > Tom wrote:
    > > Dim rs As New ADODB.Recordset
    > >
    > >
    > > rs.Open "http://www.domain.com/check/test.asp"
    > > 'Do While Not rs.EOF
    > > ' Response.write rs(1) & vbCrLf
    > > ' rs.MoveNext
    > > 'Loop
    > >
    > > where test.asp is an asp page on the web server. If I go directly to
    > > [url]http://www.domain.com/check/test.asp[/url] the page loads fine and displays
    > > the information properly.
    > >
    > > Thanks
    > >
    > > "Bob Barrows [MVP]" wrote:
    > >
    > >> I still need to see the lines of code that cause this error.
    > >>
    > >> Bob Barrows
    > >> Tom wrote:
    > >>> Sorry,
    > >>>
    > >>> The exact error text is:
    > >>>
    > >>> Run-time error'3709':
    > >>> The connection cannot be used to perform this operation. It is
    > >>> either closed or invalid in this context.
    > >>>
    > >>> Thanks
    > >>>
    > >>> "Bob Barrows [MVP]" wrote:
    > >>>
    > >>>> Tom wrote:
    > >>>>> Please forgive me if I have posted this to the wrong group! I
    > >>>>> have
    > >>>>> written a VB6 application that works fine. With that said, I
    > >>>>> would
    > >>>>> like to add the functionality of making the application send the
    > >>>>> Registered User ID and Serial Number to my web site and verify
    > >>>>> from
    > >>>>> an MS Access database that the software is registered. It seems
    > >>>>> simple and it works fine with a local database but I can't seem to
    > >>>>> get it to work on a remote database. I need to get this working
    > >>>>> on
    > >>>>> MS Access (SQL Server is easy but not an option at this time). VB
    > >>>>> .NET or ASP .NET are options on the client side only! My host
    > >>>>> does
    > >>>>> not support them. I've been scouring the net for a week now and I
    > >>>>> am
    > >>>>> still at a loss. It seems that everything I try generates a
    > >>>>> "3709"
    > >>>>> error.
    > >>>>
    > >>>> We don't have all the error numbers memorized. You need to tell us
    > >>>> the text
    > >>>> of the message as well as the number, especially since some error
    > >>>> numbers
    > >>>> can apply to multiple errors.
    > >>>>
    > >>>> 3709 does not sound like an ADO error code. Are you using ADO? Or
    > >>>> are you
    > >>>> using DAO?
    > >>>>
    > >>>> I don't understand how you can expect anyone to debug your code
    > >>>> without
    > >>>> seeing it. At least show us your connection string.
    > >>>>
    > >>>>
    > >>>>
    > >>>> --
    > >>>> Microsoft MVP - ASP/ASP.NET
    > >>>> Please reply to the newsgroup. This email account is my spam trap
    > >>>> so
    > >>>> I
    > >>>> don't check it very often. If you must reply off-line, then remove
    > >>>> the "NO SPAM"
    > >>
    > >> --
    > >> Microsoft MVP - ASP/ASP.NET
    > >> Please reply to the newsgroup. This email account is my spam trap so
    > >> I
    > >> don't check it very often. If you must reply off-line, then remove
    > >> the "NO SPAM"
    >
    > --
    > Microsoft MVP - ASP/ASP.NET
    > Please reply to the newsgroup. This email account is my spam trap so I
    > don't check it very often. If you must reply off-line, then remove the
    > "NO SPAM"
    >
    >
    >
    Tom Guest

  17. #16

    Default Re: Accessing data from an MS Access database on a remote web serv

    On Sat, 12 Jun 2004 14:12:01 -0700, Tom
    <Tom@discussions.microsoft.com> wrote:
    >Many examples on google! If that won't work what is the best way to achieve my goal?
    Start here:

    [url]http://www.asp-help.com/database/db_tutorial1.asp[/url]

    Jeff

    >"Bob Barrows [MVP]" wrote:
    >
    >> Tom,
    >> You can't use an asp page as the source for a recordset. What made you think
    >> you could?
    >>
    >> Tom wrote:
    >> > Dim rs As New ADODB.Recordset
    >> >
    >> >
    >> > rs.Open "http://www.domain.com/check/test.asp"
    >> > 'Do While Not rs.EOF
    >> > ' Response.write rs(1) & vbCrLf
    >> > ' rs.MoveNext
    >> > 'Loop
    >> >
    >> > where test.asp is an asp page on the web server. If I go directly to
    >> > [url]http://www.domain.com/check/test.asp[/url] the page loads fine and displays
    >> > the information properly.
    >> >
    >> > Thanks
    >> >
    >> > "Bob Barrows [MVP]" wrote:
    >> >
    >> >> I still need to see the lines of code that cause this error.
    >> >>
    >> >> Bob Barrows
    >> >> Tom wrote:
    >> >>> Sorry,
    >> >>>
    >> >>> The exact error text is:
    >> >>>
    >> >>> Run-time error'3709':
    >> >>> The connection cannot be used to perform this operation. It is
    >> >>> either closed or invalid in this context.
    >> >>>
    >> >>> Thanks
    >> >>>
    >> >>> "Bob Barrows [MVP]" wrote:
    >> >>>
    >> >>>> Tom wrote:
    >> >>>>> Please forgive me if I have posted this to the wrong group! I
    >> >>>>> have
    >> >>>>> written a VB6 application that works fine. With that said, I
    >> >>>>> would
    >> >>>>> like to add the functionality of making the application send the
    >> >>>>> Registered User ID and Serial Number to my web site and verify
    >> >>>>> from
    >> >>>>> an MS Access database that the software is registered. It seems
    >> >>>>> simple and it works fine with a local database but I can't seem to
    >> >>>>> get it to work on a remote database. I need to get this working
    >> >>>>> on
    >> >>>>> MS Access (SQL Server is easy but not an option at this time). VB
    >> >>>>> .NET or ASP .NET are options on the client side only! My host
    >> >>>>> does
    >> >>>>> not support them. I've been scouring the net for a week now and I
    >> >>>>> am
    >> >>>>> still at a loss. It seems that everything I try generates a
    >> >>>>> "3709"
    >> >>>>> error.
    >> >>>>
    >> >>>> We don't have all the error numbers memorized. You need to tell us
    >> >>>> the text
    >> >>>> of the message as well as the number, especially since some error
    >> >>>> numbers
    >> >>>> can apply to multiple errors.
    >> >>>>
    >> >>>> 3709 does not sound like an ADO error code. Are you using ADO? Or
    >> >>>> are you
    >> >>>> using DAO?
    >> >>>>
    >> >>>> I don't understand how you can expect anyone to debug your code
    >> >>>> without
    >> >>>> seeing it. At least show us your connection string.
    >> >>>>
    >> >>>>
    >> >>>>
    >> >>>> --
    >> >>>> Microsoft MVP - ASP/ASP.NET
    >> >>>> Please reply to the newsgroup. This email account is my spam trap
    >> >>>> so
    >> >>>> I
    >> >>>> don't check it very often. If you must reply off-line, then remove
    >> >>>> the "NO SPAM"
    >> >>
    >> >> --
    >> >> Microsoft MVP - ASP/ASP.NET
    >> >> Please reply to the newsgroup. This email account is my spam trap so
    >> >> I
    >> >> don't check it very often. If you must reply off-line, then remove
    >> >> the "NO SPAM"
    >>
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so I
    >> don't check it very often. If you must reply off-line, then remove the
    >> "NO SPAM"
    >>
    >>
    >>
    Jeff Cochran Guest

  18. #17

    Default Re: Accessing data from an MS Access database on a remote web serv

    Jeff,

    Thank you for the effort but I am apparently not communicating my problem correctly. I am in thoroughly aware of how to create, access, manipulate, ... an ASP connection to a LOCAL database. My problem is that I have to read data from an MS Access database located on a remote web server. Any suggestions, comments, examples would be appreciated.

    Thanks,
    Tom

    "Jeff Cochran" wrote:
    > On Sat, 12 Jun 2004 14:12:01 -0700, Tom
    > <Tom@discussions.microsoft.com> wrote:
    >
    > >Many examples on google! If that won't work what is the best way to achieve my goal?
    >
    > Start here:
    >
    > [url]http://www.asp-help.com/database/db_tutorial1.asp[/url]
    >
    > Jeff
    >
    >
    > >"Bob Barrows [MVP]" wrote:
    > >
    > >> Tom,
    > >> You can't use an asp page as the source for a recordset. What made you think
    > >> you could?
    > >>
    > >> Tom wrote:
    > >> > Dim rs As New ADODB.Recordset
    > >> >
    > >> >
    > >> > rs.Open "http://www.domain.com/check/test.asp"
    > >> > 'Do While Not rs.EOF
    > >> > ' Response.write rs(1) & vbCrLf
    > >> > ' rs.MoveNext
    > >> > 'Loop
    > >> >
    > >> > where test.asp is an asp page on the web server. If I go directly to
    > >> > [url]http://www.domain.com/check/test.asp[/url] the page loads fine and displays
    > >> > the information properly.
    > >> >
    > >> > Thanks
    > >> >
    > >> > "Bob Barrows [MVP]" wrote:
    > >> >
    > >> >> I still need to see the lines of code that cause this error.
    > >> >>
    > >> >> Bob Barrows
    > >> >> Tom wrote:
    > >> >>> Sorry,
    > >> >>>
    > >> >>> The exact error text is:
    > >> >>>
    > >> >>> Run-time error'3709':
    > >> >>> The connection cannot be used to perform this operation. It is
    > >> >>> either closed or invalid in this context.
    > >> >>>
    > >> >>> Thanks
    > >> >>>
    > >> >>> "Bob Barrows [MVP]" wrote:
    > >> >>>
    > >> >>>> Tom wrote:
    > >> >>>>> Please forgive me if I have posted this to the wrong group! I
    > >> >>>>> have
    > >> >>>>> written a VB6 application that works fine. With that said, I
    > >> >>>>> would
    > >> >>>>> like to add the functionality of making the application send the
    > >> >>>>> Registered User ID and Serial Number to my web site and verify
    > >> >>>>> from
    > >> >>>>> an MS Access database that the software is registered. It seems
    > >> >>>>> simple and it works fine with a local database but I can't seem to
    > >> >>>>> get it to work on a remote database. I need to get this working
    > >> >>>>> on
    > >> >>>>> MS Access (SQL Server is easy but not an option at this time). VB
    > >> >>>>> .NET or ASP .NET are options on the client side only! My host
    > >> >>>>> does
    > >> >>>>> not support them. I've been scouring the net for a week now and I
    > >> >>>>> am
    > >> >>>>> still at a loss. It seems that everything I try generates a
    > >> >>>>> "3709"
    > >> >>>>> error.
    > >> >>>>
    > >> >>>> We don't have all the error numbers memorized. You need to tell us
    > >> >>>> the text
    > >> >>>> of the message as well as the number, especially since some error
    > >> >>>> numbers
    > >> >>>> can apply to multiple errors.
    > >> >>>>
    > >> >>>> 3709 does not sound like an ADO error code. Are you using ADO? Or
    > >> >>>> are you
    > >> >>>> using DAO?
    > >> >>>>
    > >> >>>> I don't understand how you can expect anyone to debug your code
    > >> >>>> without
    > >> >>>> seeing it. At least show us your connection string.
    > >> >>>>
    > >> >>>>
    > >> >>>>
    > >> >>>> --
    > >> >>>> Microsoft MVP - ASP/ASP.NET
    > >> >>>> Please reply to the newsgroup. This email account is my spam trap
    > >> >>>> so
    > >> >>>> I
    > >> >>>> don't check it very often. If you must reply off-line, then remove
    > >> >>>> the "NO SPAM"
    > >> >>
    > >> >> --
    > >> >> Microsoft MVP - ASP/ASP.NET
    > >> >> Please reply to the newsgroup. This email account is my spam trap so
    > >> >> I
    > >> >> don't check it very often. If you must reply off-line, then remove
    > >> >> the "NO SPAM"
    > >>
    > >> --
    > >> Microsoft MVP - ASP/ASP.NET
    > >> Please reply to the newsgroup. This email account is my spam trap so I
    > >> don't check it very often. If you must reply off-line, then remove the
    > >> "NO SPAM"
    > >>
    > >>
    > >>
    >
    >
    Tom Guest

  19. #18

    Default Re: Accessing data from an MS Access database on a remote web serv


    "Tom" <Tom@discussions.microsoft.com> wrote in message
    news:7B43AD98-CE2F-4920-9EF2-07C81C52A1DA@microsoft.com...
    > Thank you for the effort but I am apparently not communicating my problem
    correctly. I am in thoroughly aware of how to create, access, manipulate,
    .... an ASP connection to a LOCAL database. My problem is that I have to
    read data from an MS Access database located on a remote web server. Any
    suggestions, comments, examples would be appreciated.



    Seems to me that your VB6 application could simply launch a URL to your own
    local server which in turn provides you with the information you want. The
    VB6 application would be running on your client/customers computer, and must
    have an internet connection. Within that VB6 application you would have to
    gather the license/registration information you want, then there would have
    to be an application launching command that would perform ...

    [url]http://www.yourdomain.com/yourASP.asp[/url]

    .... which would update your database.

    HTH,
    PW





    PW Guest

  20. #19

    Default Re: Accessing data from an MS Access database on a remote web serv

    PW,
    That is exactly what I am trying to do EXCEPT the database IS NOT LOCAL! It is sitting on a server somewhere in the world and I have no idea where. I do have complete access to it as an administrator, I can run local (on that remote server) .asp pages against it, I just can't figure out how to query information accross the internet. A bad example maybe, but think about this; I have 'XXX.exe' installed on my computer, I launch 'XXX.exe', the first thing 'XXX.exe' does is ask 'www.mydomain.com' am I a legal copy. If the result is true run as expected if not asks the user to pay for the software.

    Thanks,
    Tom


    "PW" wrote:
    >
    > "Tom" <Tom@discussions.microsoft.com> wrote in message
    > news:7B43AD98-CE2F-4920-9EF2-07C81C52A1DA@microsoft.com...
    > > Thank you for the effort but I am apparently not communicating my problem
    > correctly. I am in thoroughly aware of how to create, access, manipulate,
    > .... an ASP connection to a LOCAL database. My problem is that I have to
    > read data from an MS Access database located on a remote web server. Any
    > suggestions, comments, examples would be appreciated.
    >
    >
    >
    > Seems to me that your VB6 application could simply launch a URL to your own
    > local server which in turn provides you with the information you want. The
    > VB6 application would be running on your client/customers computer, and must
    > have an internet connection. Within that VB6 application you would have to
    > gather the license/registration information you want, then there would have
    > to be an application launching command that would perform ...
    >
    > [url]http://www.yourdomain.com/yourASP.asp[/url]
    >
    > .... which would update your database.
    >
    > HTH,
    > PW
    >
    >
    >
    >
    >
    >
    Tom Guest

  21. #20

    Default Re: Accessing data from an MS Access database on a remote web serv

    Sorry for not responding sooner: I was away from the computer yesterday
    (real life sometimes does intrude ;-) )

    OK, I have to somewhat retract my statement. You CAN open a recordset on an
    asp page, but ONLY if the asp page is designed to return results in the form
    of XML. An asp page that simply writes html to the Response (which your
    statement about browsing to the url and seeing the correct results in the
    browser made me believe you were attempting) will be meaningless to an ADO
    recordset object. Here is an example of how to do what you want:

    [url]http://www.able-consulting.com/MDAC/ADO/Connection/Recordset_URL.htm#AdoUrlConnection[/url]

    Does this help?

    Some other options are listed on on Carl's site on this page:
    [url]http://www.able-consulting.com/MDAC/ADO/Connection/OLEDB_Providers.htm#OLEDBProviderForMicrosoftJet[/url]

    Bob Barrows


    Tom wrote:
    > Many examples on google! If that won't work what is the best way to
    > achieve my goal?
    >
    >
    > "Bob Barrows [MVP]" wrote:
    >
    >> Tom,
    >> You can't use an asp page as the source for a recordset. What made
    >> you think
    >> you could?
    >>
    >> Tom wrote:
    >>> Dim rs As New ADODB.Recordset
    >>>
    >>>
    >>> rs.Open "http://www.domain.com/check/test.asp"
    >>> 'Do While Not rs.EOF
    >>> ' Response.write rs(1) & vbCrLf
    >>> ' rs.MoveNext
    >>> 'Loop
    >>>
    >>> where test.asp is an asp page on the web server. If I go directly
    >>> to [url]http://www.domain.com/check/test.asp[/url] the page loads fine and
    >>> displays
    >>> the information properly.
    >>>
    >>> Thanks
    >>>
    >>> "Bob Barrows [MVP]" wrote:
    >>>
    >>>> I still need to see the lines of code that cause this error.
    >>>>
    >>>> Bob Barrows
    >>>> Tom wrote:
    >>>>> Sorry,
    >>>>>
    >>>>> The exact error text is:
    >>>>>
    >>>>> Run-time error'3709':
    >>>>> The connection cannot be used to perform this operation. It is
    >>>>> either closed or invalid in this context.
    >>>>>
    >>>>> Thanks
    >>>>>
    >>>>> "Bob Barrows [MVP]" wrote:
    >>>>>
    >>>>>> Tom wrote:
    >>>>>>> Please forgive me if I have posted this to the wrong group! I
    >>>>>>> have
    >>>>>>> written a VB6 application that works fine. With that said, I
    >>>>>>> would
    >>>>>>> like to add the functionality of making the application send the
    >>>>>>> Registered User ID and Serial Number to my web site and verify
    >>>>>>> from
    >>>>>>> an MS Access database that the software is registered. It seems
    >>>>>>> simple and it works fine with a local database but I can't seem
    >>>>>>> to
    >>>>>>> get it to work on a remote database. I need to get this working
    >>>>>>> on
    >>>>>>> MS Access (SQL Server is easy but not an option at this time).
    >>>>>>> VB .NET or ASP .NET are options on the client side only! My
    >>>>>>> host
    >>>>>>> does
    >>>>>>> not support them. I've been scouring the net for a week now
    >>>>>>> and I
    >>>>>>> am
    >>>>>>> still at a loss. It seems that everything I try generates a
    >>>>>>> "3709"
    >>>>>>> error.
    >>>>>>
    >>>>>> We don't have all the error numbers memorized. You need to tell
    >>>>>> us
    >>>>>> the text
    >>>>>> of the message as well as the number, especially since some error
    >>>>>> numbers
    >>>>>> can apply to multiple errors.
    >>>>>>
    >>>>>> 3709 does not sound like an ADO error code. Are you using ADO? Or
    >>>>>> are you
    >>>>>> using DAO?
    >>>>>>
    >>>>>> I don't understand how you can expect anyone to debug your code
    >>>>>> without
    >>>>>> seeing it. At least show us your connection string.
    >>>>>>
    >>>>>>
    >>>>>>
    >>>>>> --
    >>>>>> Microsoft MVP - ASP/ASP.NET
    >>>>>> Please reply to the newsgroup. This email account is my spam trap
    >>>>>> so
    >>>>>> I
    >>>>>> don't check it very often. If you must reply off-line, then
    >>>>>> remove
    >>>>>> the "NO SPAM"
    >>>>
    >>>> --
    >>>> Microsoft MVP - ASP/ASP.NET
    >>>> Please reply to the newsgroup. This email account is my spam trap
    >>>> so
    >>>> I
    >>>> don't check it very often. If you must reply off-line, then remove
    >>>> the "NO SPAM"
    >>
    >> --
    >> Microsoft MVP - ASP/ASP.NET
    >> Please reply to the newsgroup. This email account is my spam trap so
    >> I
    >> don't check it very often. If you must reply off-line, then remove
    >> the "NO SPAM"
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139