If you have distinct values for DiscrepancyStatus, you can create a reference table:
eg
tblDiscrepancyStatus
DiscrepancyStatusId autonumber Primary Key
DiscrepancyStatusDesc text
with values ( Taken from your post )
1 Weather Conditions
2 Low Priority
3 High Priority
4 Archive
5 Site Work
Then in your tblDiscrepancy you would add a field (FK to tblDiscrepancyStatus) called DiscrepancyStatusId (numeric, long integer)
Then your query SQL would be along the line of :
Code:
SELECT tblDiscrepancy.DateStamp, tblDiscrepancy.DiscrepancyID, tblDiscrepancy.DiscrepancySubject, tblDiscrepancyStatus.DiscrepancyStatusDesc, tblDiscrepancy.DiscrepancyPriority
FROM tblDiscrepancyStatus INNER JOIN tblDiscrepancy
ON tblDiscrepancyStatus.DiscrepancyStatusID = tblDiscrepancy.DiscrepancyStatusID
WHERE tblDiscrepancy.DiscrepancyPriority="Archive"
ORDER BY DateStamp;
I have a feeling you could use lookup/reference tables for other attributes as well.
For example, Discrepancy priority.
It is confusing to the reader, and possibly highlights a problem with your terminology, when the same term "Archive" is used as a value of two or more fields/attributes. Here you use "archive" for DiscrepancyStatus and
DiscrepancyPriority.
An interesting exercise for you would be to identify each table and each attribute with a 1 -2 line description.Doing so would help clarify what is a Status versus Priority. Readers do NOT know your environment and its jargon as well as you, so what may be obvious to you is less so to readers. Describing your terms (documenting your tables and attributes) often helps to focus your thinking and design. This is especially rue when working with multiple users and/or developers. The team has to be on the same page...
Also,in Access the form is the appropriate interface for all users. No one should be working directly with tables.
Good luck with your project.