add/remove field from MS Access

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

  1. #1

    Default add/remove field from MS Access

    Hi!
    I am a newbie in ASP. I would like to use ASP to access a data base (MS
    Access).
    However, the db is not so normal. What I mean is that from time to time I
    want to add or remove fields from a table.
    I would like to do it using code and not from the design view of MS Access.
    Is that possible?

    Thnx in advance


    John Guest

  2. Similar Questions and Discussions

    1. How to access the value in a current field
      Hello, I'm using a CFform. The user will type in a Building Number; further down the form, if the user checks a checkbox, I want to collect more...
    2. Remove form field duplicated across multiple pages
      Can a (text) form field duplicated across multiple pages in Acrobat 6.0.1 be removed in a simple operation, or must the field be removed from each...
    3. Access hidden field
      Hi group, I'm trying to write to a hidden field on a form from a page that is loaded as the "src" in an iframe. I keep getting "Access denied" in...
    4. MS Access Memo Field and ASP
      I have a memo field in a MS Access table. The contents of the field may look like this: 1. This is number one 2. This is number 2 3. Skipping...
    5. ASP ACCESS Db Field Size
      place the info into a memo field ================================ http://www.ASPkey.net/ A Resource Site for Web Developers *Free OnLine web...
  3. #2

    Default Re: add/remove field from MS Access

    John wrote:
    > Hi!
    > I am a newbie in ASP. I would like to use ASP to access a data base
    > (MS Access).
    > However, the db is not so normal. What I mean is that from time to
    > time I want to add or remove fields from a table.
    > I would like to do it using code and not from the design view of MS
    > Access. Is that possible?
    >
    > Thnx in advance
    I recommend that you rethink this design. It will cause you nothing but
    headaches down the road. A properly normalized database should never need
    these types of activity when in production. It sounds to me as if you are
    trying to use the database as if it was an Excel spreadsheet. You are
    definitely missing out on the power of a relational database if you treat it
    as if it was a big spreadsheet.

    However ...

    You have two options:

    1. You can use SQL queries to modify table structures. Look up the JetSQL
    section in Access online help for details. The easiest way to find this
    section is to go to the Contents tab in the online help window, expand the
    main node if it's not already expanded, and look for the node titled
    Microsoft Jet SQL Reference. The subnode titled Data Definition Language is
    the relevant section.

    2. You can also use ADOX to do this. Go to
    [url]http://msdn.microsoft.com/library/en-us/ado270/htm/pg_adox_fundamentals.asp[/url]
    for details.

    HTH,
    Bob Barrows

    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows 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