Results 1 to 7 of 7

Thread: layout for CRUD in table with many columns

  1. #1

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    layout for CRUD in table with many columns

    Hi
    Somebody can give an idea how can built a CRUD in form when a table(oracle) have 92 columns


    Any help will be appreciated

    tia

  2. #2
    PowerPoster
    Join Date
    Jun 2015
    Posts
    2,229

    Re: layout for CRUD in table with many columns

    Sounds like a job for a Property Grid. A Tabbed one.

    edit: That's what I would do anyway - you'll find a lot of UI people strongly against Property Grids in general.
    Last edited by DEXWERX; Jan 4th, 2019 at 01:46 PM.

  3. #3

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: layout for CRUD in table with many columns

    Thank you
    But I can not to use any grid (msflexgrid /ssdbgrid) Tabs perhaps bad is put all this amount of fields

  4. #4

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: layout for CRUD in table with many columns

    Thank you
    But I can not to use any grid (msflexgrid /ssdbgrid) Tabs perhaps bad is put all this amount of fields

  5. #5
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: layout for CRUD in table with many columns

    Can you use a listview to CRUD individual records? The field values would be in the first listview column and the field names in the second column -- then change the order so the field names are first. This allows user to enter directly into the field values column.
    Code:
    ListView1.ColumnHeaders(1).Position = 2
    Then you can load an individual record using code similar to the following. In this example, we'll assume your records are in a recordset RS:
    Code:
        Dim n As Long
        ListView1.ListItems.Clear
        For n = 0 To rs.Fields.Count - 1
            With ListView1.ListItems.Add(, , rs.Fields(n).Value)
                .SubItems(1) = rs.Fields(n).Name
            End With
        Next
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  6. #6

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Re: layout for CRUD in table with many columns

    Quote Originally Posted by LaVolpe View Post
    Can you use a listview to CRUD individual records? The field values would be in the first listview column and the field names in the second column -- then change the order so the field names are first. This allows user to enter directly into the field values column.
    Code:
    ListView1.ColumnHeaders(1).Position = 2
    Then you can load an individual record using code similar to the following. In this example, we'll assume your records are in a recordset RS:
    Code:
        Dim n As Long
        ListView1.ListItems.Clear
        For n = 0 To rs.Fields.Count - 1
            With ListView1.ListItems.Add(, , rs.Fields(n).Value)
                .SubItems(1) = rs.Fields(n).Name
            End With
        Next
    Thank you, but I did not understand

  7. #7

    Thread Starter
    Fanatic Member mutley's Avatar
    Join Date
    Apr 2000
    Location
    Sao Paulo - Brazil
    Posts
    709

    Unhappy Re: layout for CRUD in table with many columns

    Quote Originally Posted by LaVolpe View Post
    Can you use a listview to CRUD individual records? The field values would be in the first listview column and the field names in the second column -- then change the order so the field names are first. This allows user to enter directly into the field values column.
    Code:
    ListView1.ColumnHeaders(1).Position = 2
    Then you can load an individual record using code similar to the following. In this example, we'll assume your records are in a recordset RS:
    Code:
        Dim n As Long
        ListView1.ListItems.Clear
        For n = 0 To rs.Fields.Count - 1
            With ListView1.ListItems.Add(, , rs.Fields(n).Value)
                .SubItems(1) = rs.Fields(n).Name
            End With
        Next
    Thank you, but I did not understand

Tags for this Thread

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