Click here to Skip to main content
15,921,959 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralApp existence...going twice Pin
cyberstrategist8-Oct-01 7:49
cyberstrategist8-Oct-01 7:49 
GeneralRe: App existence...going twice Pin
Oyvind Bratland19-Oct-01 3:33
Oyvind Bratland19-Oct-01 3:33 
GeneralRe: App existence...going twice Pin
Kevin Behilo22-Oct-01 18:03
Kevin Behilo22-Oct-01 18:03 
GeneralEmulator Pin
5-Oct-01 10:16
suss5-Oct-01 10:16 
GeneralRe: Emulator Pin
Kevin Behilo22-Oct-01 17:52
Kevin Behilo22-Oct-01 17:52 
Generaltimeline Schedua-Calander Component Pin
Rayman5-Oct-01 8:18
Rayman5-Oct-01 8:18 
GeneralRe: timeline Schedua-Calander Component Pin
Oyvind Bratland19-Oct-01 3:37
Oyvind Bratland19-Oct-01 3:37 
QuestionHow to catch the and publish yourself the message? Pin
5-Oct-01 8:07
suss5-Oct-01 8:07 
I am writing an application in VB6 to interface with SQL 6.5 and have a question regarding catching login failure messages. The first thing my application does is prompt the user for his SQL userid and password. I then try to login to SQL Server. If the user entered a wrong password, the Microsoft SQL Server Login failed message is displayed.This message contains too much technical information that will confuse the users. I would like to trap the error and send my own screen with more user friendly information. The exact error message is 'Connection Failed: SQL State: '28000' SQL Server Error 4002.


Public Connection As String
Public DBTemp As Database

Connection = "odbc;logintimeout=30;DSN=Station Train Control;"
Set DBTemp = OpenDatabase("", True, False, Connection)

Please help!
Lillian.




AnswerRe: How to catch the and publish yourself the message? Pin
Rayman5-Oct-01 8:36
Rayman5-Oct-01 8:36 
GeneralWhy refresh method of the FlexGrid open new SQL connection Pin
5-Oct-01 8:04
suss5-Oct-01 8:04 
GeneralMAPI and Task Scheduler Pin
2-Oct-01 21:59
suss2-Oct-01 21:59 
QuestionWebBrowser control alternatives? Pin
1-Oct-01 23:28
suss1-Oct-01 23:28 
GeneralProblem about MSHFlexgrid control! Pin
huang30-Sep-01 16:53
huang30-Sep-01 16:53 
GeneralMultithreading in VB Pin
30-Sep-01 4:07
suss30-Sep-01 4:07 
GeneralRe: Multithreading in VB Pin
Oyvind Bratland19-Oct-01 3:40
Oyvind Bratland19-Oct-01 3:40 
GeneralRe: Multithreading in VB Pin
Kevin Behilo22-Oct-01 17:54
Kevin Behilo22-Oct-01 17:54 
GeneralRe: Multithreading in VB Pin
22-Oct-01 23:58
suss22-Oct-01 23:58 
GeneralRe: Multithreading in VB Pin
Daniel Turini22-Oct-01 23:26
Daniel Turini22-Oct-01 23:26 
GeneralMenu Font in VB (and Outlook 2000) Pin
David Galloway27-Sep-01 10:51
David Galloway27-Sep-01 10:51 
GeneralCommand Line Parameters Pin
Steve Thresher27-Sep-01 3:35
Steve Thresher27-Sep-01 3:35 
GeneralRe: Command Line Parameters Pin
Steve Thresher28-Sep-01 4:30
Steve Thresher28-Sep-01 4:30 
GeneralMenus in an ActiveX Control Pin
AaronGman26-Sep-01 8:48
AaronGman26-Sep-01 8:48 
Generaldates as interger Pin
22-Sep-01 21:58
suss22-Sep-01 21:58 
GeneralRe: dates as interger Pin
25-Sep-01 12:25
suss25-Sep-01 12:25 
GeneralError trapping Pin
21-Sep-01 21:31
suss21-Sep-01 21:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.