Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    2

    Question Unanswered: VB6 + ODBC Connect Dialog

    Hi,

    i will connect to a Informix DB over VB. The Connection String is:

    cnnString = "DRIVER={INFORMIX 3.30 32 BIT};DB=database;HOST=hostname;SRVR=inf_serv;SERV= pr_inf;PRO=olsoctcp;"
    DataEnvironment1.Connection1.ConnectionString = cnnString
    DataEnvironment1.Connection1.Open , username, password

    When the username and password are correct, the connect works fine. But when username or password are bad, the ODBC-Driver display a "Informix Connect" Dialog.
    This "Informix Connect"-Dialog is display before a "On Error" works.

    How can i stop/hide this Dialog and use my own Error-Dialog in example: "The password is bad, bla bla ..."?



    Thanks Enrico.

  2. #2
    Join Date
    Aug 2003
    Location
    Argentina
    Posts
    780

    Re: VB6 + ODBC Connect Dialog

    Originally posted by RicoHoff
    Hi,

    i will connect to a Informix DB over VB. The Connection String is:

    cnnString = "DRIVER={INFORMIX 3.30 32 BIT};DB=database;HOST=hostname;SRVR=inf_serv;SERV= pr_inf;PRO=olsoctcp;"
    DataEnvironment1.Connection1.ConnectionString = cnnString
    DataEnvironment1.Connection1.Open , username, password

    When the username and password are correct, the connect works fine. But when username or password are bad, the ODBC-Driver display a "Informix Connect" Dialog.
    This "Informix Connect"-Dialog is display before a "On Error" works.

    How can i stop/hide this Dialog and use my own Error-Dialog in example: "The password is bad, bla bla ..."?



    Thanks Enrico.
    Hi,

    That it says log of the online one.
    There are errors ?.

    Gustavo.

  3. #3
    Join Date
    Oct 2003
    Posts
    2

    Talking found answer

    Hi,

    i have found the answer.
    It's a problem of ODBC and not of Informix.

    The Answer:
    DataEnvironment1.Connection1.Properties("Prompt") = adPromptNever

    Thank you nevertheless.

    By Enrico ...

Posting Permissions

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