KadeFoster
Registered User.
- Local time
- Tomorrow, 08:44
- Joined
- Apr 7, 2012
- Messages
- 67
Hey All,
I am not good with queries and my focus of my project has been my forms for getting the data in. Unfortunately one of the queries i had has broken and i cannot work out why, due to my lack of understanding and limited knowledge of them.
So i have a continuous form that "was" displaying my maps, and now nothing. Below is my form.
Below is my table PK-TCRAID
Below is the current code, that has stopped for some reason.
I want to display all the maps from TCRAActiveMapsT that have not been inspected in the current year. The TCRAInspectionT.InspectedDate is where the date of the inspection has been done.
The SQL above was working but it is not now.
Please help, my project was going good until this happened and now i am stuck.
I am not good with queries and my focus of my project has been my forms for getting the data in. Unfortunately one of the queries i had has broken and i cannot work out why, due to my lack of understanding and limited knowledge of them.
So i have a continuous form that "was" displaying my maps, and now nothing. Below is my form.
Below is my table PK-TCRAID
Below is the current code, that has stopped for some reason.
SQL:
SELECT LevelT.Level, TCRAActiveMapsT.TCRAID, TCRAActiveMapsT.MapBlock, TCRAActiveMapsT.IsActive, TCRAActiveMapsT.LevelID, TCRAActiveMapsT.MineID
FROM TCRAActiveMapsT INNER JOIN LevelT ON TCRAActiveMapsT.LevelID = LevelT.LevelID
WHERE (((LevelT.Level) Like "*" & [Forms]![TCRAIDLookupF]![LevelSearch] & "*") AND ((TCRAMapDataT.TCRAID) Not In (SELECT TCRAID FROM TCRAInspectionT WHERE YEAR(INSPECTEDDATE)=YEAR(DATE()))) AND ((TCRAActiveMapsT.MapBlock) Like "*" & [Forms]![TCRAIDLookupF]![BlockSearch] & "*") AND ((TCRAActiveMapsT.IsActive)="Yes"));
I want to display all the maps from TCRAActiveMapsT that have not been inspected in the current year. The TCRAInspectionT.InspectedDate is where the date of the inspection has been done.
The SQL above was working but it is not now.
Please help, my project was going good until this happened and now i am stuck.