Does the Open method return anything?

Results 1 to 2 of 2

Thread: Does the Open method return anything?

  1. #1
    Join Date
    Dec 1969

    Default Does the Open method return anything?

    I am trying to find out if the Open method returns anything. I want to be able to redirect users to a different page if the connection to the database fails. Does anyone have any suggestions?<BR><BR>Thanks,<BR>Jeff

  2. #2
    jason Guest

    Default RE: Does the Open method return anything?

    you mean the open() method of the connection object, i assume?<BR><BR>it doesn&#039t return anything - which is the reason why occassionally you get &#039cannot use parentheses when calling a sub&#039 errors if you&#039re careless. subs don&#039t return values, you see. <BR><BR>if you need to know if the connection is open, you can probably rely on the fact that it&#039ll return an error if it doesn&#039t open.<BR><BR>why don&#039t you just grab the ADO documentation (you probably already have it on your machine)? it&#039s a lot quicker than asking on a messageboard.<BR><BR>jason

Posting Permissions

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