I have a main switchboard menu choice that would run the following:
DoCmd.OpenForm "frmQuickView", acFormDS, "qryWAbyPoc", , acFormReadOnly, acWindowNormal
However, the user gets prompted twice for the POC LastName and ultimately no records returned by frmQuickView.
qryWAbyPOC includes most fields from tblWA and only has one parameter in it prompting for the LastName which comes from tblNames. tblWA field POC is the PrimaryKey to a FK in tblNames.
I'm thinking that I should not be using the parameter query as the WHERE condition, but rather use a SQL statement. However, I can't get my head wrapped around how to draft it up.
In summary, I'd just like the user to be prompted for a lastname and have only those records related displayed in frmQuickView.
Any hints at getting started in the right direction are appreciated.
DoCmd.OpenForm "frmQuickView", acFormDS, "qryWAbyPoc", , acFormReadOnly, acWindowNormal
However, the user gets prompted twice for the POC LastName and ultimately no records returned by frmQuickView.
qryWAbyPOC includes most fields from tblWA and only has one parameter in it prompting for the LastName which comes from tblNames. tblWA field POC is the PrimaryKey to a FK in tblNames.
I'm thinking that I should not be using the parameter query as the WHERE condition, but rather use a SQL statement. However, I can't get my head wrapped around how to draft it up.
In summary, I'd just like the user to be prompted for a lastname and have only those records related displayed in frmQuickView.
Any hints at getting started in the right direction are appreciated.