Click here to Skip to main content
15,891,864 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Publishing a working program Pin
DaveAuld2-Nov-09 3:47
professionalDaveAuld2-Nov-09 3:47 
GeneralRe: Publishing a working program Pin
offroaderdan2-Nov-09 3:50
offroaderdan2-Nov-09 3:50 
GeneralRe: Publishing a working program Pin
offroaderdan2-Nov-09 3:56
offroaderdan2-Nov-09 3:56 
QuestionEquivalent to the SQL code is? Pin
Milad.Biroonvand2-Nov-09 1:56
Milad.Biroonvand2-Nov-09 1:56 
AnswerRe: Equivalent to the SQL code is? Pin
Ashfield2-Nov-09 2:17
Ashfield2-Nov-09 2:17 
AnswerRe: Equivalent to the SQL code is? Pin
DaveAuld2-Nov-09 2:23
professionalDaveAuld2-Nov-09 2:23 
AnswerRe: Equivalent to the SQL code is? Pin
Henry Minute2-Nov-09 2:24
Henry Minute2-Nov-09 2:24 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand2-Nov-09 2:40
Milad.Biroonvand2-Nov-09 2:40 
im sorry.




example
in Access


dim da as new oledbdataadabtor


in sql
dim da as new sqldataadabtor


now

in Access

Dim db As New ADODB.Connection
Dim rs As New ADODB.Recordset
in sql = ????

-----
and


db.Provider = "Microsoft.Jet.OLEDB.4.0"
db.Open("db.mdb")
in sql = ????

in Access =
Private Sub LoadTV()
        'On Error Resume Next
        rs.Open("[Folder]", db, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic)
        Dim K, I, J, L As Integer
        Dim T, R, Pr As String
        rs.MoveFirst()
        For I = 1 To rs.RecordCount
            K = rs.Fields("Level").Value
            If J < K Then J = K
            If Not rs.EOF Then rs.MoveNext()
        Next
        rs.MoveFirst()
        For I = 0 To J
            rs.MoveFirst()
            For L = 1 To rs.RecordCount
                K = rs.Fields("Level").Value
                T = rs.Fields("head").Value '*** TEXT
                R = rs.Fields("ID").Value  '*** key = F+id
                Pr = rs.Fields("Parent").Value


                If I = 0 And K = 0 Then
                    ' TV.Nodes.Add("F" & R, T, "bc", "bo")
                    TV.Nodes.Add(R, T, "bc", "bo")
                Else
                    If K = I Then
                        '    TV.Nodes.Find("F" & Pr, True)(0).Nodes.Add("F" & R, T, "gc", "go")
                        TV.Nodes.Find(Pr, True)(0).Nodes.Add(R, T, "gc", "go")
                    End If
                End If

                My.Application.DoEvents()
                If Not rs.EOF Then rs.MoveNext()

            Next
            '          If Not rs.EOF Then rs.MoveNext()

        Next
        rs.Close()
        'rs.Open("Matn", db)
        'rs.MoveFirst()
        'For I = 1 To rs.RecordCount
        '    K = rs.Fields("Folder").Value
        '    R = rs.Fields("ID").Value
        '    T = rs.Fields("Head").Value
        '    TV.Nodes.Find("F" & K, True)(0).Nodes.Add("M" & R, T, "mc", "mo")
        '    If Not rs.EOF Then rs.MoveNext()
        'Next

        'rs.Close()

   
    End Sub


in sql =???

Do you UNDERSTAND?
GeneralRe: Equivalent to the SQL code is? Pin
DaveAuld2-Nov-09 2:47
professionalDaveAuld2-Nov-09 2:47 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand2-Nov-09 3:01
Milad.Biroonvand2-Nov-09 3:01 
GeneralRe: Equivalent to the SQL code is? Pin
Steven J Jowett2-Nov-09 8:19
Steven J Jowett2-Nov-09 8:19 
GeneralRe: Equivalent to the SQL code is? Pin
Henry Minute2-Nov-09 5:04
Henry Minute2-Nov-09 5:04 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand2-Nov-09 21:26
Milad.Biroonvand2-Nov-09 21:26 
GeneralRe: Equivalent to the SQL code is? Pin
Milad.Biroonvand6-Nov-09 19:01
Milad.Biroonvand6-Nov-09 19:01 
QuestionI have to concate two strings by operator "/" Pin
KIDYA2-Nov-09 1:30
KIDYA2-Nov-09 1:30 
AnswerRe: I have to concate two strings by operator "/" Pin
Padmaraj Sivaraj2-Nov-09 2:11
Padmaraj Sivaraj2-Nov-09 2:11 
AnswerRe: I have to concate two strings by operator "/" Pin
Henry Minute2-Nov-09 2:14
Henry Minute2-Nov-09 2:14 
AnswerRe: I have to concate two strings by operator "/" Pin
DaveAuld2-Nov-09 2:16
professionalDaveAuld2-Nov-09 2:16 
AnswerRe: I have to concate two strings by operator "/" Pin
Luc Pattyn2-Nov-09 2:31
sitebuilderLuc Pattyn2-Nov-09 2:31 
QuestionNatural order sorting in vb Pin
herulee2-Nov-09 0:22
herulee2-Nov-09 0:22 
AnswerRe: Natural order sorting in vb Pin
helelark1232-Nov-09 1:02
helelark1232-Nov-09 1:02 
AnswerRe: Natural order sorting in vb Pin
Luc Pattyn2-Nov-09 1:17
sitebuilderLuc Pattyn2-Nov-09 1:17 
GeneralRe: Natural order sorting in vb Pin
herulee2-Nov-09 2:04
herulee2-Nov-09 2:04 
GeneralRe: Natural order sorting in vb Pin
Luc Pattyn2-Nov-09 2:10
sitebuilderLuc Pattyn2-Nov-09 2:10 
GeneralRe: Natural order sorting in vb Pin
herulee2-Nov-09 2:23
herulee2-Nov-09 2:23 

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.