I'm doing a query on two tables linked by an ID number.
Table 1 has one line per ID number that contains an event date we'll call majordate.
Table 2 has multiple lines per ID number that contains multiple event dates we'll call minordate and another field we'll call parameter1.
Can anyone tell me how to select parameter1 from Table 2 from the row that yields the smallest positive DateDiff("d", [majordate],[minordate])?
Thank you in advance for your time and skill.
Table 1 has one line per ID number that contains an event date we'll call majordate.
Table 2 has multiple lines per ID number that contains multiple event dates we'll call minordate and another field we'll call parameter1.
Can anyone tell me how to select parameter1 from Table 2 from the row that yields the smallest positive DateDiff("d", [majordate],[minordate])?
Thank you in advance for your time and skill.