Nov 20, 2006 #1 skoutr1 Technical User Aug 9, 2001 22 0 0 US I have a MS Access database with a table that includes the following fields: [numID] and [numYear]. In a query, I want to return ALL records for [numID] if at least one record for [numID] has [numYear] = Year(Now()). -Rod
I have a MS Access database with a table that includes the following fields: [numID] and [numYear]. In a query, I want to return ALL records for [numID] if at least one record for [numID] has [numYear] = Year(Now()). -Rod
Nov 20, 2006 #2 Remou Technical User Sep 30, 2002 13,030 0 0 BE How about something like: [tt]Select * From tblTable Where NumID In (Select NumID From tblTable A Where A.NumYear = Year(Date())[/tt] Upvote 0 Downvote
How about something like: [tt]Select * From tblTable Where NumID In (Select NumID From tblTable A Where A.NumYear = Year(Date())[/tt]
Nov 20, 2006 Thread starter #3 skoutr1 Technical User Aug 9, 2001 22 0 0 US I had people here at work giving me the same code. After much frustration and trial and error, I got it to work. Thanks! -Rod Upvote 0 Downvote
I had people here at work giving me the same code. After much frustration and trial and error, I got it to work. Thanks! -Rod