Displaying fields(columns) in MS Access

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Displaying fields(columns) in MS Access

    Good day to everyone.

    I have found using various connection types my table display comes up
    differently.

    If I use an OLEDB type connections my columns are sorted alphanumeric.

    If I use an ODBC type connections my columns are sorted based on how they
    appear in the actual table.

    Is there a way to always have the columns displayed in the order they are
    listed in the actual table without using an ODBC provider?

    Code:

    Set rs=server.createobject("adodb.recordset")
    rs.open pTable, pConn
    'pTable is variable of table name
    'pConn is connection string

    for each fld in rs.fields
    response.write fld.name
    next

    end Code:


    David P. Jessup Guest

  2. Similar Questions and Discussions

    1. displaying multiple columns in <cfselect>
      ok, I have a database that house a table called model. The model contains a manufacturer foreign key and 3 other fileds for that table. I want...
    2. Hiding/Displaying... Columns....
      How to hide/display the datagrid colums at run time? ..Net 1.1. Thanks, Smith
    3. displaying query in 2 columns
      Hi Guys, need your help on this please, I am trying to get the result of my query splited in 2 columns, where in the first column will have my first...
    4. displaying images in multiple columns
      hi, i want to display in my form pictures(the url is taken from a database), like this: pic1 pic2 pic3 pic4 pic5 pic6 .... i ve...
    5. Displaying parent fields in a datagrid?
      Not to worry - I did with a TemplateColumn "Simon Storr" <sstorr@sdasolutions.com> wrote in message news:uPKuJStSDHA.1688@TK2MSFTNGP11.phx.gbl......
  3. #2

    Default Re: Displaying fields(columns) in MS Access

    > Is there a way to always have the columns displayed in the order they are
    > listed in the actual table without using an ODBC provider?
    Yes, use a SELECT statement, and *list* the columns. SELECT *, or rs.open
    tablename (which is the same thing), should not be used in production
    code... [url]http://www.aspfaq.com/2096[/url]

    There are often far better options for getting schema than extracting it
    from an expensive query of all the data... [url]http://www.aspfaq.com/2177[/url]


    Aaron Bertrand - MVP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139