Results 1 to 2 of 2

Thread: what do i need to do??

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Posts
    81
    my connection to my SQL7 database works fine in the code but
    now what do i do what code do i put in here so i can
    display my results from my query in a msflexgridcontrol
    called msflexgrid1 any ideas???

    Code:
    Private Sub Command1_Click()
    
    Dim dyna As Recordset
    Dim theError As Long
    Dim theid As Long
    
    
     theid = txtCandidateID
     SQL = "Select historydate,historyaction,historyconsultant,historyquicknotes from candidate  where candidateID = " & theid & "'"
    On Local Error Resume Next
    
    Set dyna = db.OpenRecordset(SQL, dbOpenDynaset, dbSQLPassThrough + dbSeeChanges)
    theError = Err
    On Local Error GoTo 0
    'now what do i do what code do i put in here so i can
    'display my results from my query in a msflexgridcontrol
    'called msflexgrid

  2. #2
    Addicted Member ShIzO's Avatar
    Join Date
    Apr 1999
    Location
    Bartlett, IL
    Posts
    189
    search for 'msflexgrid adding items' on msdn --> http://search.microsoft.com/us/dev/default.asp you will find there how to add rows to flex grid.
    www.HardFind.com -buy/sell/trade your used hardware.

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