CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Creating database using ADOX

    Hi
    I've created succesfully an access database in code using ADOX (piece of cake), but I can't find anything about the field-order; I've append the columns in the right order, but when I open the database, the order of the fields is alphabetic, which not only looks bad but isn't handy at all.
    Does anyone know how to set the "field-order"?
    Tnx in advance

    Crazy D @ Work :-)

  2. #2
    Guest

    Re: Creating database using ADOX

    Open db in Access, highlight the table and click on Design. Click on first column you need to move to the different place then drag it to new position and drop.
    Vlad


  3. #3
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Creating database using ADOX

    Yeah, I know, but I mean from within code,
    Tnx anyway.

    Crazy D @ Work :-)

  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: Creating database using ADOX

    if you want to display the field names in the order you created it, you should be able to use the OrdinalPosition property of the fields collection of a table.


  5. #5
    Join Date
    Apr 1999
    Location
    Netherlands
    Posts
    181

    Re: Creating database using ADOX

    tnx, but there is no object in the ADOX objects that has an OrdinalPosition property :-(
    And for displaying within the program, I use another database, which is setup at designtime. This is an export database, created during runtime, I only have to fill it, not display it. It's not a big problem, but it looks "unfinished" (if you know what I mean) if it's sorted alphabetically.

    Crazy D @ Work :-)

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