SQL not Updating Access Database

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

  1. #1

    Default SQL not Updating Access Database

    Hi,

    I have an ASP page that updates an Access 2000 database. It doesnt seem to
    update the date field of the table.

    Here is the SQL: Update functionline set rowno=1, enddate=#2004/06/30#
    where recid = 22

    I dont get an error either. When I run the query in Access, it updates it
    no problem.

    What is wrong with updating dates in ASP? I can update textboxes though.

    thanks,
    Will


    wk6pack Guest

  2. Similar Questions and Discussions

    1. updating a database.
      at the moment is am trying to create a page to update a database. i select the a company in a list which the gets forwarded to the next page. On...
    2. CFLOOP, Updating a field in Access database
      I need to update a field in an Access database. The numbe rneeds to have four characters and increment by one. Currently I can update all of the...
    3. updating database
      I posted this in the general dis part too but maybe this is better place since it has to do with forms... here is my problem I need to overcome....
    4. MS Access Database not Updating
      Hi, I am working on creating dynamic home pages with Coldfusion MX on the server, Dreamweaver for developing and Microsoft Access as the backend...
    5. Updating a Database
      Hi I am just learning asp.net and have hit a wall with the datagrid control. I have populated a datagrid and am able to edit fields and retrieve...
  3. #2

    Default Re: SQL not Updating Access Database

    Try using a standard date format, e.g.

    Update functionline set rowno=1, enddate=#2004-06-30# where recid = 22

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]




    "wk6pack" <wkwan@sd61.bc.ca> wrote in message
    news:Oy$DmLcuDHA.3532@TK2MSFTNGP11.phx.gbl...
    > Hi,
    >
    > I have an ASP page that updates an Access 2000 database. It doesnt seem
    to
    > update the date field of the table.
    >
    > Here is the SQL: Update functionline set rowno=1, enddate=#2004/06/30#
    > where recid = 22
    >
    > I dont get an error either. When I run the query in Access, it updates it
    > no problem.
    >
    > What is wrong with updating dates in ASP? I can update textboxes though.
    >
    > thanks,
    > Will
    >
    >

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: SQL not Updating Access Database

    Hi,

    I figured it out. If you do more than one execute of a SQL statement in
    your asp, you need to do a committrans.
    I thought it would do that automatically for you?

    anyways, it works.

    thanks,
    Will

    "Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
    news:%23N1U%23NcuDHA.1744@TK2MSFTNGP12.phx.gbl...
    > Try using a standard date format, e.g.
    >
    > Update functionline set rowno=1, enddate=#2004-06-30# where recid = 22
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >
    >
    >
    > "wk6pack" <wkwan@sd61.bc.ca> wrote in message
    > news:Oy$DmLcuDHA.3532@TK2MSFTNGP11.phx.gbl...
    > > Hi,
    > >
    > > I have an ASP page that updates an Access 2000 database. It doesnt seem
    > to
    > > update the date field of the table.
    > >
    > > Here is the SQL: Update functionline set rowno=1, enddate=#2004/06/30#
    > > where recid = 22
    > >
    > > I dont get an error either. When I run the query in Access, it updates
    it
    > > no problem.
    > >
    > > What is wrong with updating dates in ASP? I can update textboxes
    though.
    > >
    > > thanks,
    > > Will
    > >
    > >
    >
    >

    wk6pack Guest

  5. #4

    Default Re: SQL not Updating Access Database

    > I figured it out. If you do more than one execute of a SQL statement in
    > your asp, you need to do a committrans.
    Umm, that's weird. I have many web sites committing many SQL statements in
    single pages, and not one instance of a commtTrans command.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/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