Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 9th, 2003, 05:00 PM
Martina&Nicole Martina&Nicole is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Cambridge
Posts: 4 Martina&Nicole User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
problems with dublicates

Hello,

We have created a database where we run a query and make a table in which we find dublicates (dublicates-function at queries; meaning we have 3 fields, i.e. pupils and instruments which all have been allocated to a teacher --> we set primary keys for all 3 of them). However, we still have this problem that many teachers are allocated to one pupil. How can we delete dublicates in a way that - whenever we update the query/table - that we don't have to delete the dublicates again? Is there any function in Access?

In addition, is there a function in which Access automatically deletes 2 of the 3 dublicates (for example)?

Thank you very much in advance!

Martina & Nicole & Andrea

Last edited by Martina&Nicole : December 9th, 2003 at 05:04 PM.

Reply With Quote
  #2  
Old December 9th, 2003, 05:49 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
If I understand you right you only want a one teacher per pupil per instrument taken

CHange you table structure to reflect

(PK) Pupil
(PK) Instrument
TeacherID

This will allow a student to learn more then one instrument, and will only assign the teacher once to a student/instrument combination.

If this still isn't what you want, then you will need to move the teacherID into the student table to state that this student is only taught by this one teacher for all instruments the student is learning.

If I still haven't asnwered your question, post your current DB and I will look at it specifically, instead of going by memory.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > problems with dublicates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT