G
Guest
To simplify, say my form shows records in tblPatientEncounters and it has two
columns: txtPatUniqueID and txtEpisodeNumber. There are multiple Episodes for
each patient and they are stored in tblPatEpisode. I want the user to be able
to change the value of of txtEpisodeNumber by selecting from tblPatEpisode,
but only "see" the Episodes corresponding to the txtPatUniqueID for the
display line that she is working on. I replaced txtEpisodeNumber on the form
with cboEpisodeNumber with a SELECT statement having a WHERE clause that
limits by txtPatUniqueID. The problem is that the first selected row works,
but when I then select another row and try my combo box, the WHERE limitation
remains as for the first row I selected. I've tried replacing the SELECT
statement with reference to a query that limits by txtPatUniqueID in the
form, but get the same problem.
I think a summary would be that I am stumped trying to make a combo box
selection on a row in a form where the selection is limited by a field in the
selected row.
Any ideas? Thank you.
columns: txtPatUniqueID and txtEpisodeNumber. There are multiple Episodes for
each patient and they are stored in tblPatEpisode. I want the user to be able
to change the value of of txtEpisodeNumber by selecting from tblPatEpisode,
but only "see" the Episodes corresponding to the txtPatUniqueID for the
display line that she is working on. I replaced txtEpisodeNumber on the form
with cboEpisodeNumber with a SELECT statement having a WHERE clause that
limits by txtPatUniqueID. The problem is that the first selected row works,
but when I then select another row and try my combo box, the WHERE limitation
remains as for the first row I selected. I've tried replacing the SELECT
statement with reference to a query that limits by txtPatUniqueID in the
form, but get the same problem.
I think a summary would be that I am stumped trying to make a combo box
selection on a row in a form where the selection is limited by a field in the
selected row.
Any ideas? Thank you.