Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / August 2006

Tip: Looking for answers? Try searching our database.

Help with update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brucear - 12 Aug 2006 11:37 GMT
I have a primary table with student names and an autoNumber Student ID.
In another table (Attendance) I have the names of students and want to
assign the correct StudentID to the LastName in the Attendance table. Help?
Signature

Bruce Rae

tina - 12 Aug 2006 14:24 GMT
the first question is:  why? if you have a tblStudents, where all students
are listed, and a tblAttendance, where presumably you track (daily? weekly?)
attendance for specific students, then it sounds like those table have a
one-to-many relationship - one student may have many attendance records, but
each attendance record belongs to only one student. tblAttendance should
have only a foreign key field that contains the primary key values from
tblStudents, that identify which student record is linked to each attendance
record.

if the data in tblAttendance comes from "outside" the database, outside of
your control, and all you have are last names to work with, then you can use
a Select query to link the student records to the attendance records by last
name, and then turn the Select query into an Update query. but you're going
to have problems with that if more that one student in tblAttendance happen
to have the same last name; there's no easy way to deal with that, unless
there are other identifying data in tblAttendance that you can match with
identifying data in tblStudents.

hth

> I have a primary table with student names and an autoNumber Student ID.
> In another table (Attendance) I have the names of students and want to
> assign the correct StudentID to the LastName in the Attendance table. Help?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.