473,395 Members | 1,462 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,395 software developers and data experts.

Error message for an indexed field on the Form

91
Hi,

In my form (with multiple tabs), I have a field which is indexed and does not allow duplicate data. While checking the form I found the following problem:

I entered a value in the field which already exist in the database. I then tried to save it but the database correctly warned to say that same data exists in the database.

I then tried to navigate away from the Form by deleting the value I entered in this field but it is not allowing me to and is giving out a message:

"The changes you requested to the table were not successful because they would create duplicate values..........." I am attaching the screen shot of the same.

I had to "kill" the form and had to reopen navigate through the form.

My question is that why cannot I move away from the current tab in the Form to another tab even after deleting the duplicate data in the indexed field? As mentioned, I do not want user to insert duplicate data for this particular field.

What should I do so that I can naviagate through the form without "killing" the form? What should I do to avoid this message? "Killing" means closing the form using the "Close" X button of the form.


Please help.

Thanks,
SG
Attached Files
File Type: doc Doc5.doc (194.5 KB, 194 views)
Apr 26 '12 #1
2 1248
sg2808
91
I think I got the solution.. which is hitting the Escape key ones / twice.
Apr 26 '12 #2
sg2808
91
Correction - *once.

......................................
Apr 26 '12 #3

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

Similar topics

2
by: Robert | last post by:
This one should be easy, I think. I have an unbound form with 2 controls: a textbox and a command button. The textbox should contain a value when the command button is clicked. If it doesn't,...
2
by: Gran | last post by:
Hi, Im using Access 97, and I have two subforms which have a total for the query'd data. I then go and total the two together on the main form. But, when one has no data it brings up an error. I...
1
by: Jim | last post by:
I have a form which is based on a join query. The join relationship is one to many. When a new record is added and the user enters a value for one of the fields in the "many" records, I attempt...
4
by: jkriner | last post by:
#Name? error message in Access Form -------------------------------------------------------------------------------- Hello I have created a simple database with 4 tables (all the same fields in...
2
by: bruce24444 | last post by:
I have a field in a table set to "Required". When a user is inputting data via a form and if they leave this field blank, Access automatically returns the following error message: The field...
25
by: Rick Collard | last post by:
Using DAO 3.6 on an Access 2002 database, I'm getting unexpected results with the FindFirst method. Here's the simple code to test: Public Sub FindIt() Dim db As Database, rs As Recordset...
21
by: MNNovice | last post by:
I am getting error message while entering data using a sub form. Here are the details of the tables associated with this form. Basically I am trying to enter expense data. tblECHO has these...
4
by: student2 | last post by:
Hi :-) I've designed a query that gathers its information for two tables:- 1)Author and 2) Category My selection criteria for this query is Author.AuthorName and Category.CategoryName .
10
by: Anthony97 | last post by:
I get the following error message Run-time error '2455' you entered invalid reference to the property FileSearch ...
2
by: Henderson44 | last post by:
How do I enter a formula/expression in a textbox control that will calculate 2 two fields. Example: = - the total should appear in the field (Units Failed)?
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.