473,394 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Weird Access DB problem

Here's a strange problem. I've built an Classic ASP application with an Access 2003 DB on the backend on my website to track my comic book collection. The site is running on a dedicated Win2003 server.

I'm very close to completing the project, bar a couple of tweaks ...

However, when I try to add a new comic (ie table row) via the ASP/HTML input form, I get an odd message.


Expand|Select|Wrap|Line Numbers
  1. Microsoft JET Database Engine error '80040e21'
  2.  
  3. The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
  4.  
  5. /publishing/comics/collecting/admin/addItem.asp, line 52
  6.  

At first I thought it might be just bad programming on my part (and it may be, yet) but when I downloaded the DB from the server and tried to put in new items manually, the autonumber [Item ID] value had somehow set back to a much earlier number and was now duplicating ID numbers that were already in use by the DB.

I can temporarily cure the problem by creating a new DB and importing the data from the old DB, but when I put the new DB up on my server, I get the same problem again.

So now I'm thinking this is some kind of corruption problem. Has anyone ever heard of anything like this before?

Thanks in advance for any light you can shed on this,

Peck2000
Sep 28 '07 #1
1 1343
NeoPa
32,556 Expert Mod 16PB
I'm afraid not Peck :(
I can't think what would cause this type of behaviour I'm afraid. As you say it may be your ASP code, but it may also be connected with how ASP connects to the database. Only other ASP programmers would be able to help there though. You may want to post this question again there. I won't simply move this across as someone here in Access may yet be able to shed some light, but I wouldn't hold your breath.
Good luck with it anyway.
Sep 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: redneck_kiwi | last post by:
Hi all: I have a really weird problem. I am developing a customer catalog system for my company and as such have delved into sessions for authentication and access levels. So far, I have managed...
13
by: Wolfgang Kaml | last post by:
Hello All, I have been researching newsgroups and knowledgebase all morning and not found a solution that would solve the problem I have. I am having an ASP or ASPX web page that implement a...
2
by: Kathy Houtami | last post by:
Hi there I've been encountered with weird compile error using Access 97. The error message is "Member or data member is not found" and it highlighted a line of code that has not be changed and...
6
by: Angel Mazo | last post by:
Dear all, I have a very weird Access 97 MDE behavior that I don't know how to explain and, of course, how to solve: .. I have a site with 14 PC's, mixed Windows XP Pro and Windows 98, running...
1
by: Dees | last post by:
Hi, I am facing a weird problem with HTTPS and Request.Url.AbsoluteUri in my ASP.NET application. Here is the scenario - 1. I have a menu page (Default.aspx), which has the following anchor -...
12
by: sparks | last post by:
My boss and I both have access 97 and access 2003 installed on our systems. Lately he has been having a lot of problems. Databases that won't close. The database looks like it closes but access...
6
by: kwest | last post by:
I just setup a new server with PHP 5 and ran into a problem with includes. Everytime I call something like require_once './includes/test.inc' I get a permissions message like this: Warning:...
1
by: PeaceManGroove | last post by:
It's a long story, but our application needs to run in Access 97. All of the computers in our organisation also run Access 2003. . . C++ code launches our Access reports via a VB 6.0 program. ...
20
by: ongaro.admin | last post by:
Hi, I'm experiencing a strange problem with .mdb files. We have two buildings connected by optical fiber (a single LAN). Everything works perfect with any file, any size, any application...
9
prn
by: prn | last post by:
Hi folks, I've come across a couple of the oddest behaviors that I have ever seen and wondered if anyone else has had anything similar, and if so, whether you have any suggestions for me. I warn...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.