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

Form won't let me edit data!

Hi there all you smarter than me people!

I am stuck. I have been working on this database for days and cannot figure out how to solve my problem.

I have a form with two embedded subforms. The parent form contains patient identifiers, such as, medical record number, first name, middle initial, last name, physican name, etc. The first subform contains appointment information, such as, test results, procedures, counseling, etc. The second subform contains baby delivery data.

Each form/subform has a table as its control source. The parent table has the member record number (MRN) as it's primary key (no duplicates). The subforms has a database ID, autonumbered, as their primary keys.

I used DLookup to auto populate the controls on the parent form, using a query attached to an unbound control. However, I cannot save any changes on previously entered records. I receive the following error message: "The changes you requested to the table were not successful because thgey 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." I want to be able to edit and add new records to the table.

Help!!!

Thanks.

Linda
Nov 2 '07 #1
2 5448
ADezii
8,834 Expert 8TB
Hi there all you smarter than me people!

I am stuck. I have been working on this database for days and cannot figure out how to solve my problem.

I have a form with two embedded subforms. The parent form contains patient identifiers, such as, medical record number, first name, middle initial, last name, physican name, etc. The first subform contains appointment information, such as, test results, procedures, counseling, etc. The second subform contains baby delivery data.

Each form/subform has a table as its control source. The parent table has the member record number (MRN) as it's primary key (no duplicates). The subforms has a database ID, autonumbered, as their primary keys.

I used DLookup to auto populate the controls on the parent form, using a query attached to an unbound control. However, I cannot save any changes on previously entered records. I receive the following error message: "The changes you requested to the table were not successful because thgey 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." I want to be able to edit and add new records to the table.

Help!!!

Thanks.

Linda
Linda, I do not think that your problem can be diagnosed without a greater amount of information (Table Names, Primary Keys, Relationships, Record Source descriptions, etc.). If you are stuck, and you would be agreeable to sending me the Database as an E-Mail Attachment, I would be happy to look at it as soon as I get a chance. I simply cannot give a reply with the information provided, and even if I had the required information, analysis may still be difficult. You can wait and see if you like, and hopefully someone may have a solution, but if you would like me to look at the DB, just let me know and I'll send you my E-Mail Address in a Private Message. You could then send me the DB as an Attachment.
Nov 3 '07 #2
Linda, I do not think that your problem can be diagnosed without a greater amount of information (Table Names, Primary Keys, Relationships, Record Source descriptions, etc.). If you are stuck, and you would be agreeable to sending me the Database as an E-Mail Attachment, I would be happy to look at it as soon as I get a chance. I simply cannot give a reply with the information provided, and even if I had the required information, analysis may still be difficult. You can wait and see if you like, and hopefully someone may have a solution, but if you would like me to look at the DB, just let me know and I'll send you my E-Mail Address in a Private Message. You could then send me the DB as an Attachment.
Yes. I would definitely be interested in having some assistance with this problem. Please send me your e-mail address and I will send you the database. Thank you for your willingness to help!

Linda
Nov 3 '07 #3

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

Similar topics

4
by: Terry | last post by:
I need some help refining an MS 2000 relational databse. I have created a simple relational database using two tables, 'Student Details', 'Exam Details' and two forms, 'Input/Edit Exam Details',...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
2
by: Uwe Range | last post by:
Hi to all, I am working on a form with a combi-field on a subform. I want to give the user the opportunity to alter the list-content (which is based on a table) in a separate form. The user...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
5
by: mwilliams | last post by:
I recently built a database and have created a form for data review/entry pulling from a query. My problem is that I currently cannot change anything in any of the fields. I can tab through the...
2
by: Jack | last post by:
Hi, I got a edit form in a asp application which allows multiple record edit from the same page. The edit screen works great to a point. I developed this application on my laptop(15"). However,...
3
by: pfm721 | last post by:
I have a form that is based on a query. There are multiple tables in the query. the parameter in the query is VetSSN. My problem is that if there is no data in a particular table the form text boxes...
1
by: chromis | last post by:
Hi, I'm having trouble fully implementing the edit section of a contact admin system, so far I have written the following: - Bean (Contact.cfc) - Data Access object (ContactDAO.cfc) - Gateway...
1
by: lchomany | last post by:
Good Day! I have a macro created to Open my subform and is embedded in the Command Button. Main Form: frmADD NEW ENTITY NAME Subform: frmEntityAwards My macro filters to the specific...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.