Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 244
  • Last Modified:

List Boxes

I have a table set up in access with 6 fields.  I want to be able to display all the records in a list box to the user.  I have variables taking in the records but how do i display these variables in the listbox in the same format as the table
0
Yozzer
Asked:
Yozzer
1 Solution
 
gelbertCommented:
You can use standard 32bit Microsoft List control which allows you to create as many columns as you wanted. If you can represent your fields as strings or digits then you can format then which ever way you want before inserting into list control
0
 
AlexVirochovskyCommented:
May be better use MsGrid Control(if
you want display as Table, not ListBox).
What compiler do you use? For VC you
can find examples of using MsGrid in
www.codeguru.com
0
 
sinclairjCommented:
If you really want a listbox use Ctring::Format to create one string of all the values then AddString with the result.

Otherwise suggest using listctrl as gelbert mentioned
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now