Hello again. Does anybody have a solution to the following problem?
I have 2 tables (tblListofActivities and tblActivities) that are linked by a 1 to many relationship. The tblListofActivities (which is the 1 side) just lists all the events for the entire year. The second table (tblActivities) will only get data as each event occurs. So the tblListofActivities will have many entries where there are no entries with the same ActivityID as the other table because the event hasn't occurred yet.
I want to use a combo box that will only list the events that have occurred, and will not show those items that doesn't have an ActivityID associated with tblListofActivities .
Hope this makes sense because I'm not sure how else to word it.
Right now, I have the following line of code, but it lists all items in the table.
[Forms]![frmFindbyLastName]![LastName].RowSource = "SELECT DISTINCTROW [tblListofActivities].[ActivityDate] , [tblListofActivities].[ActivityName] FROM [tblListofActivities] ORDER BY [ActivityDate],[ActivityName];"
Any help would be appreciated. Thank you.
Comtech