P
Peter Stone
Novice/XP/Access 2003
I have a combo (cboLocalDestination) on the header of frmText that selects
records by destination.
I have a list box (lstSelectRecord) on a subform (fsubSelectRecord).
The Row Source property of lstSelectRecord contains a Select statement that
populates lstSelectRecord with all the records for the destination selected
in cboLocalDestination:
SELECT tblMain.MainID, tblMain.LocalDestinationID, tblMain.Heading,
tblProgress.ProgressID, tblProgress.Progress,
tblPublicationStatus.PublicationStatusID,
tblPublicationStatus.PublicationStatus FROM tblProgress INNER JOIN
(tblPublicationStatus INNER JOIN tblMain ON
tblPublicationStatus.PublicationStatusID=tblMain.PublicationStatusID) ON
tblProgress.ProgressID=tblMain.ProgressID WHERE
(((tblMain.LocalDestinationID)=Forms!frmText!cboLocalDestination));
I am going to copy and rename frmText many times. Can I replace
Forms!frmText! (at the end of the query) with the name of the form? This will
save having a separate subform and query for each form.
Thank you
Peter
I have a combo (cboLocalDestination) on the header of frmText that selects
records by destination.
I have a list box (lstSelectRecord) on a subform (fsubSelectRecord).
The Row Source property of lstSelectRecord contains a Select statement that
populates lstSelectRecord with all the records for the destination selected
in cboLocalDestination:
SELECT tblMain.MainID, tblMain.LocalDestinationID, tblMain.Heading,
tblProgress.ProgressID, tblProgress.Progress,
tblPublicationStatus.PublicationStatusID,
tblPublicationStatus.PublicationStatus FROM tblProgress INNER JOIN
(tblPublicationStatus INNER JOIN tblMain ON
tblPublicationStatus.PublicationStatusID=tblMain.PublicationStatusID) ON
tblProgress.ProgressID=tblMain.ProgressID WHERE
(((tblMain.LocalDestinationID)=Forms!frmText!cboLocalDestination));
I am going to copy and rename frmText many times. Can I replace
Forms!frmText! (at the end of the query) with the name of the form? This will
save having a separate subform and query for each form.
Thank you
Peter