KadeFoster
Registered User.
- Local time
- Today, 22:30
- Joined
- Apr 7, 2012
- Messages
- 67
Hey all,
I have a project that i have been working on and i am stuck with a query, I am relatively new to access, but have been working my way through my project slowly.
So below i have a list of all my active maps(TCRA MAP LOOKUP). For each of these active maps i have to generate an inspection (TCRA INSPECTION), just once a year for each map.
I want the maps to disappear from the list once i have put an inspection in for the current year. So when next year rolls around all the active maps are visible in the list to select again. Inspected Date is recorded in the TCRAInspectionT
I have included my project, the form that this is on TCRALookupF.
Hopefully some one can help, hope explained it right.
Code Below is what i use to generate my map list:
I have a project that i have been working on and i am stuck with a query, I am relatively new to access, but have been working my way through my project slowly.
So below i have a list of all my active maps(TCRA MAP LOOKUP). For each of these active maps i have to generate an inspection (TCRA INSPECTION), just once a year for each map.
I want the maps to disappear from the list once i have put an inspection in for the current year. So when next year rolls around all the active maps are visible in the list to select again. Inspected Date is recorded in the TCRAInspectionT
I have included my project, the form that this is on TCRALookupF.
Hopefully some one can help, hope explained it right.
Code Below is what i use to generate my map list:
SQL:
SELECT LevelT.Level, TCRAMapDataT.TCRAID, TCRAMapDataT.MapBlock, TCRAMapDataT.IsActive, TCRAMapDataT.LevelID, TCRAMapDataT.MineID FROM TCRAMapDataT INNER JOIN LevelT ON TCRAMapDataT.LevelID = LevelT.LevelID WHERE (((LevelT.Level) Like "*" & Forms!TCRAIDLookupF!LevelSearch & "*") And ((TCRAMapDataT.MapBlock) Like "*" & Forms!TCRAIDLookupF!BlockSearch & "*") And ((TCRAMapDataT.IsActive)="Yes"));