Creating table to insert data inside it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • farhad
    New Member
    • Sep 2006
    • 17

    Creating table to insert data inside it

    Hi

    I have a ListBox and I want write code for a CommandButton that by pressing it, a table be create with 2 column . One is contain data that in listbox and secon column is empty that I would like to enter data as number. if that data count is variable , how can I do it?

    Do you have another issu?

    Thank you so.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by farhad
    Hi
    I have a ListBox and I want write code for a CommandButton that by pressing it, a table be create with 2 column . One is contain data that in listbox and secon column is empty that I would like to enter data as number. if that data count is variable , how can I do it?
    Do you have another issu?
    Thank you so.
    I'm a little confused. For a start, are you talking about standalone VB (if so, which version) or VB embedded in Access, or Excel, or what?
    And when you speak of creating a "table" are you referring to a table in an Access database? Or some sort of grid on-screen? Or in a spreadsheet? Or do you just mean an array?

    Comment

    • farhad
      New Member
      • Sep 2006
      • 17

      #3
      Thank you my friend

      I work with VB6 and my ask about cereating table meaning grid on form (project form ) and not table in access ,

      could you help me?

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by farhad
        Thank you my friend
        I work with VB6 and my ask about cereating table meaning grid on form (project form ) and not table in access ,
        could you help me?
        Well, the ListBox control has a property which allows you to set the number of columns to display. I don't know much about this feature, but the online help should tell you how to use it.

        There are also various grid controls available. If you press [Ctrl]-[T] (or select Project | Components) you can choose to add them to your toolbox. For instance, on my component list there are "Microsoft Flexgrid Control", "Microsoft Grid Control", "Microsoft Data Bound Grid Control", "Microsoft DataGrid Control". They all have different properties and functionality. I guess you might want to have a look through them and see what they do.

        My guess is the listbox would be the simplest way to go, but it depends on what you are trying to achieve.

        Comment

        • farhad
          New Member
          • Sep 2006
          • 17

          #5
          Well
          When you can help me online pease?

          I will be at home after 12 days because I am in vacation now.

          Thank you for yeplyng me

          Comment

          Working...