This is a discussion on "Access duplicates" within the Databases section. This forum, and the thread "Access duplicates are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Access duplicates
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Access duplicates
Has anyone had problems with access adding new records twice (creating a duplicate) when using INSERT INTO from ASP?
|
|
|
|
#2
|
|||
|
|||
|
Its not a problem with refreshing the page and re-executing the code is it?
|
|
#3
|
|||
|
|||
|
I thought about that, especially as it's not consistent. Sometimes a single entry, sometimes 2. Still trying to test that.
I know Access has some funky quirks and thought maybe this was just one of those. |
|
#4
|
|||
|
|||
|
Stab in the dark.. Not anything to do with a double click on the submit button? I.e., code being executed before any document output, nothing happens, person clicks again?
u2o |
|
#5
|
|||
|
|||
|
OK, checked for double submit/refresh being the cause and that's not what's causing it. Switched from a DSN to DSN-less connection, didn't affect it.
Code's pretty standard:
|
|
#6
|
|||
|
|||
|
I don't know if this has anything to do with your dual entry problem, but when I do an action query I don't set rs=conn.execute SQL
I just type conn.execute SQL other than that, I don't know. jakyra |
|
#7
|
|||
|
|||
|
Yeah, I saw that he'd put it in that way and changed it to just con.execute. Still making doubles. I'm wondering if the hosting company (never use DellHost btw, they suck) has an old version of the Jet Engine installed.
|
|
#8
|
|||
|
|||
|
Well, I gave up . I ended up adding some code to an admin page to remove all the duplicates when they pull up the table contents.
Now I remember why I like SQL Server better. |
![]() |
| Tags |
| access, duplicates |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Portfolio Site Trouble! Duplicates of One Image | taaaylor | Flash & Multimedia Forum | 5 | Jun 26th, 2007 23:50 |
| ASP Multi users Access to Microsoft Access | ish | Classic ASP | 0 | Apr 26th, 2007 20:05 |
| Access | cheataweb | Databases | 4 | Mar 21st, 2007 18:42 |
| ASP to ACCESS | ntgcmlfu | Classic ASP | 16 | Apr 18th, 2006 03:33 |
| Need help please...ASP and Access DB | newbie44 | Classic ASP | 13 | Sep 19th, 2005 22:02 |