Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Stop duplicate records in Access 2010

Posted on 2011-03-15
4
Medium Priority
?
400 Views
Last Modified: 2012-05-11
I created a form in Access with linked tables to data on a SQL server.  When the user enters data into the form (Access) the data is duplicated on the form.  So one line of unique data now turns into two.  I created the form using Form Wizard and chose all the coloums from my Table.  Any suggestions would be great on how to not have the form duplicate the records.  
0
Comment
Question by:SargentControls
  • 2
4 Comments
 
LVL 5

Expert Comment

by:mayankagarwal
ID: 35140003
you can define a primary key on the table. or before inserting the row in the table you can check for the existing data if at all it exists then throw an error to the user
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 750 total points
ID: 35140239
"I created a form in Access with linked tables to data on a SQL server."
Then, can you explain the structure of these tables and the links involved...?
Post the ERD (Entity relationship diagram)

There is nothing the form wizard can do that will create duplicate records automatically (unless the code was perhaps modified after the fact).

I would suspect the table relationships first.
0
 
LVL 1

Author Closing Comment

by:SargentControls
ID: 35888586
None
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35889897
None what?
0

Featured Post

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re using QODBC to update QuickBooks data from Microsoft® Access but Access is not showing the updated data, you could have set up QODBC incorrectly.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question