amarsha4
02-26-2009, 05:53 AM
Hi,
I have a VB6 program centred around an Access database.
I have a Staff table with StaffNo as the primary key and a Meeting table with a composite primary key consisting of StaffNo, MeetingDate and MeetingTime. The relationship between the two tables is one to many (one member of staff can attend many meetings).
Now, I need it to be possible to change the StaffNo, but don't really know how to do it. Access will not allow one table's StaffNo to be changed without the other matching up.
I only use Access to store the information, all viewing/adding/editing is done through a stand-alone VB6 program
Hope someone can help.
I've actually been pondering the idea of removing all relationships in the database, since I control, through the VB program, what actions can and cannot be performed. Bad idea?
I have a VB6 program centred around an Access database.
I have a Staff table with StaffNo as the primary key and a Meeting table with a composite primary key consisting of StaffNo, MeetingDate and MeetingTime. The relationship between the two tables is one to many (one member of staff can attend many meetings).
Now, I need it to be possible to change the StaffNo, but don't really know how to do it. Access will not allow one table's StaffNo to be changed without the other matching up.
I only use Access to store the information, all viewing/adding/editing is done through a stand-alone VB6 program
Hope someone can help.
I've actually been pondering the idea of removing all relationships in the database, since I control, through the VB program, what actions can and cannot be performed. Bad idea?