Click here to Skip to main content
16,009,144 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
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 
Public Connection1 As ADODB.Connection
Public strConnectionString As String
Public strUserWsd As String
Public strUserID As String

Set Connection1 = New ADODB.Connection
Connection1.ConnectionString = strConnectionString

'we already catch the UserID and Pwd info in this stage
strConnectionString = "DSN=Station Train Control;UID=" + strUserID + ";PWD=" + strUserWsd


Connection1.Open strConnectionString, strUserID, strUserWsd
'in this stage of the program : open Connection1 establish a principal connection

'later in the program
'call flexGrid
'the control "MSRDC1" for the FlexGrid which manupulate with the information for the Grid
frmDepArrival.MSRDC1.Connect = strConnectionString
frmDepArrival.MSRDC1.UserName = strUserID
frmDepArrival.MSRDC1.Password = strUserWsd

'the program keeping the same connection....everything it's still OK

frmDepArrival.MSRDC1.SQL = " select 'Train #'=trn_no ,'Track #'=trk_no,'Schedule'=convert(char(5),sch_dep_tm,14),'Actual'=convert(char(5),act_dep_tm,14) ,'Delay(min)'=DateDiff(mi,sch_dep_tm ,act_dep_tm ) from actdep where trn_prcs_dt = '10-04-2001 12:00PM' and in_stn_ind ='N' order by sch_dep_tm asc "

frmDepArrival.MSRDC2.Connect = strConnectionString
frmDepArrival.MSRDC2.UserName = strUserID
frmDepArrival.MSRDC2.Password = strUserWsd

'the program keeping the same connection....everything it's still OK

frmDepArrival.MSRDC2.SQL =select 'Train #'=trn_no ,'Track #'=trk_no ,'Schedule'=convert(char(5),sch_arr_tm,14) ,'Actual'=convert(char(5),act_arr_tm,14) ,'Delay(min)'=DateDiff(mi,sch_arr_tm,act_arr_tm) from actarr where trn_prcs_dt = '10-04-2001 12:00PM' and in_stn_ind ='N' order by sch_arr_tm asc


'the program keeping the same connection....everything it's still OK

'in this stage the program opening new connection on Refresh method,Why?
frmDepArrival.MSRDC1.Refresh

'in this stage the program opening new connection on Refresh method,Why?
frmDepArrival.MSRDC2.Refresh


The question :
How I can keep the "Microsoft SQL Server 6.5 " from opening the new connection on Refresh
method the FlexGrid's and using the old "one and only" connection in the program???

Lillian
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 
GeneralRe: Error trapping Pin
NormDroid22-Sep-01 0:45
professionalNormDroid22-Sep-01 0:45 
GeneralRe: Error trapping Pin
22-Sep-01 21:56
suss22-Sep-01 21:56 

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.