I am using Access 2000. The following is my table structure.
tblRegulation:
RegulationID (PK)
Issue
SubIssue1
SubIssue2
SubIssue3
SubIssue4
Comments
Other Fields
tblRegReviewed:
RegulationID (PK)
User (PK)
Reviewed
DateReviewed
tblUserPreferences
User
Issue
tblLocalUser
User
This is a multi-user database. tblLocalUser stores the User ID of the current user. tblUserPreferences stores the Issues from tblRegulation that each user wants to view. tblRegReviewed stores info on which records each user has reviewed and when they were reviewed. tblRegulation stores the records.
I have a form that I want to use to show the records that the LocalUser has not reviewed. The criteria for this query should be records where tblRegReviewed.Reviewed = NO and tblRegulation.Issue = (an Issue from tblUserPreferences) Or tblRegulation.SubIssue1 = (an issue from tblUserPreferences).
Currently, I have a four queries (one for each issue and subissue) that select the records, then I join these queries with a union query. This gives me the correct records; however I am not able to add comments or mark the records as reviewed (These fields are not updatable in a union query).
Is there another way to view the relevant records and also update comments and reviewed fields?
Another help would be greatly appreciated?
Thanks,
Jeff Weisman
tblRegulation:
RegulationID (PK)
Issue
SubIssue1
SubIssue2
SubIssue3
SubIssue4
Comments
Other Fields
tblRegReviewed:
RegulationID (PK)
User (PK)
Reviewed
DateReviewed
tblUserPreferences
User
Issue
tblLocalUser
User
This is a multi-user database. tblLocalUser stores the User ID of the current user. tblUserPreferences stores the Issues from tblRegulation that each user wants to view. tblRegReviewed stores info on which records each user has reviewed and when they were reviewed. tblRegulation stores the records.
I have a form that I want to use to show the records that the LocalUser has not reviewed. The criteria for this query should be records where tblRegReviewed.Reviewed = NO and tblRegulation.Issue = (an Issue from tblUserPreferences) Or tblRegulation.SubIssue1 = (an issue from tblUserPreferences).
Currently, I have a four queries (one for each issue and subissue) that select the records, then I join these queries with a union query. This gives me the correct records; however I am not able to add comments or mark the records as reviewed (These fields are not updatable in a union query).
Is there another way to view the relevant records and also update comments and reviewed fields?
Another help would be greatly appreciated?
Thanks,
Jeff Weisman