Results 1 to 40 of 301

Thread: The 1001 questions about vbRichClient5 (2020-07-21)

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Sep 2012
    Posts
    2,083

    Re: The 1001 questions about vbRichClient5 (2019-12-05)

    Hi truerad21, try the following code:

    Code:
    Private Sub Form_Load()
        If CreateConnection Then
            Dim recSet As cRecordset
            Dim SQLStr As String
            SQLStr = "select * from vi_sample"
            
            Set recSet = DBConn.OpenRecordset(SQLStr, True)
            
            If recSet.RecordCount <> 0 Then
                Set MSHFlexGrid1.DataSource = recSet.GetADORsFromContent.DataSource
            End If
        End If
    End Sub
    Note:
    Note: The above code does not need to explicitly (early) reference the Microsoft ActiveX Data Objects Library.
    Last edited by dreammanor; Dec 10th, 2019 at 08:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width