CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Dec 2002
    Posts
    55

    How do I populate a combobox with Field names

    from an Access DB Table? I can do it with Records from the field but I can't figure out how to get the Field names.

    Set dbEquipSetF1 = OpenDatabase("C:\Program Files\PageMe\Pageme.mdb")
    Set rstEquipSetF1 = dbEquipSetF1.OpenRecordset("EquipmentSetF1", dbOpenDynaset)

    With rstEquipSetF1
    Do While Not .EOF
    cboEquipSet.AddItem .Fields
    .MoveNext
    Loop
    End With

    I'm not even close...
    Thanks
    Relentless
    Last edited by Relentless; April 19th, 2005 at 03:28 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

Featured