Using MS Access as back end, how do i.....

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Using MS Access as back end, how do i.....

    I am looking to get the ID of the last inserted record in an msaccess db. I
    know in sql server you can select @identity or @@identity - but this doesnt
    work in msaccess.

    any help would be greatly apprecitated.

    ty

    smb

    stephenmbell Guest

  2. Similar Questions and Discussions

    1. Saving arabic data back into an Access table
      I am trying to save arabic text from Flash 8 to an Access table through ASP. Please help me fix this issue. I am using the following code in...
    2. bring back text as hyperlink from access .asp
      i'm try to bring back txt from an access database into a table in .asp and would like to make the txt a hyperlink to a different area of a website....
    3. How to restrict the user to go back ones the user haslogged out. Or, if he goes back, how to generate custom errorfor
      :music; How to restrict the user to go back ones the user has logged out. Or, if he goes back, how to generate custom error for Page Expire ? :music;
    4. "Back end not found. Or back end is busy"
      Hello, I get this message when I try to connect to my IDS 9.4 via the bde16. I use the client version 4 (sqld_inf.dll). The version 5 gave me...
    5. Converting from Access back end to SQL Server
      I have a web site that uses an Access 2000 back end. Most of the recordsets use the rsName.open "qryName"... method. So far, in converting to a...
  3. #2

    Default Re: Using MS Access as back end, how do i.....

    @@identity does work in ms access as long as your using 2000 +

    But the following will work as well

    Select Max(ID) As maxid
    from tableName

    But you need to enclose the insert query and the select query in
    cftransaction, to ensure that both queries are performed as one

    Ken

    The ScareCrow Guest

  4. #3

    Default Re: Using MS Access as back end, how do i.....

    I always add the biggest where clause I can produce to the query suggested by The ScareCrow.
    Dan Bracuk 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