If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > VB6 + ODBC Connect Dialog

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-09-03, 04:19
RicoHoff RicoHoff is offline
Registered User
 
Join Date: Oct 2003
Posts: 2
Question 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.
Reply With Quote
  #2 (permalink)  
Old 10-09-03, 09:39
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: VB6 + ODBC Connect Dialog

Quote:
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.
Reply With Quote
  #3 (permalink)  
Old 10-10-03, 02:25
RicoHoff RicoHoff is offline
Registered User
 
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 ...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On