hi i am trying to create a application for doctors n have to enter all the information regarding the patients i am using access as the database n nw the problem is tat the doc is supposed to save the patient details n when he opens it again he shld be able to add new medicines n new appointments bt when i try entering all the details in one table it gives me an exception regrading duplicating a value of primary key n if i use two tables then they dont take the values as required plzzzzzz help
sana.khatib20
0
Newbie Poster
Recommended Answers
Jump to Postif i have to guess then you try to insert a value into the DB for a field that is primary that already exist. but would help ofc if you post the code snippet where the error shows up.
Jump to PostWelcome to the forum, sana.khatib20,
Did your read the rules at daniweb?
1.
Homework policy - Show your work please.
2.
How to use code tags? - Wrap up your source code with code tags.
3.
Use suitable title for the thread.
All 6 Replies
GeekByChoiCe
152
Practically a Master Poster
Featured Poster
kvprajapati
1,826
Posting Genius
Team Colleague
sana.khatib20
0
Newbie Poster
ezhumalayan
0
Newbie Poster
sana.khatib20
0
Newbie Poster
Piya27
4
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.