Can anyone tell me how to assign the following SQL to a string variable in MS Access 16 so that it can be assigned to a ListBox RowSource. I’ve tried it unsuccessfully but I think my syntax is wrong.
SELECT tblSubjectToday.SubjectToday, tblSubjectToday.IsPending, tblSubjectToday.Training_ID
FROM tblSubjectToday
WHERE (((tblSubjectToday.Training_ID)=[Forms]![frmClient]![frmTraining].[intTrainingID]));
I want to do the following:
strRowSource = ??
lstList.RowSource = strRowsource
Thanks Chris
SELECT tblSubjectToday.SubjectToday, tblSubjectToday.IsPending, tblSubjectToday.Training_ID
FROM tblSubjectToday
WHERE (((tblSubjectToday.Training_ID)=[Forms]![frmClient]![frmTraining].[intTrainingID]));
I want to do the following:
strRowSource = ??
lstList.RowSource = strRowsource
Thanks Chris