Visual Basic 6.0

Description

Visual Basic (VB) is the third-generation event-driven programming language and associated development environment (IDE) from Microsoft for its COM programming model.

slow select distinct jet access and vb6 classic

Submitted by sal21 on
my code for sql: Public Function ExecuteSQL(SQL) CLEAN_UP Set RST0 = New ADODB.Recordset With RST0 .CursorLocation = adUseServer DoEvents .Open SQL, CONN3, adOpenForwardOnly, adLockReadOnly, adCmdText '.Source = SQL '.CursorLocation = adUseServer '.ActiveConnection = CONN3 '.CursorType = adOpenForwardOnly '.LockType = adLockReadOnly 'DoEvents '.Open Options:=adCmdText End With End Function my conn: Public Sub APRI_CONNESSIONE3() On Error GoTo Err_SomeName If Not CONN3 Is Nothing Then

Tree node Problem

Submitted by partho2mail on
Dear admin, At first my u take my nonsmoker My problem is, i made a tree node in vb6. When the form is loaded then all Child Node are expended But i want only tree node are Expended and Child node are Collapse. Please Please Help Me this to solve problem. Partho Kumar Boruya

Best method to open table for Add.new

Submitted by sal21 on
Wath is the best method to open access table with jet 4.0 to use Add.new ? Actually i use: Set RST = New ADODB.Recordset RST.Open "table1", CONN, adOpenDynamic, adLockOptimistic my conn: Code: Public Sub APRI_CONNESSIONE() On Error GoTo Err_SomeName Dim PC_OPERANTE As String PC_OPERANTE = Environ$("COMPUTERNAME") Set CONN = New ADODB.Connection

vb6 Reading loading data into MS Access table takes too long...

Submitted by ricsontolits on
The problem is that, at about 1 minute per 1000 records, this takes wayyyy too long to load 500,000 - 600,000 records! I can load these same records from the text file manually by opening the table in MS Access and going though a wizard to import the data from the text file and it doesn't take very long, (can't remember for sure, but well under 15 minutes).

how to calculate months with a due date in vb 6

Submitted by ricsontolits on
Dim dateprev, datelast As Date dateprev = Format(txttrandateprev.Text, "mm/dd/yy") datelast = Format(txttransdatelast.Text, "mm/dd/yy") txtmonths.Text = DateDiff("m", dateprev, datelast) exam txttrandateprev.Text = "09/11/11" txtransdatelast.text = "10/10/11" wrong answer txtmonths.Text = "1" correct answer