J
Jeff
Hi,
I have two bounded ComboBoxes, cbxDrName & cbxDrComment, on a SubForm
(MySubForm). What I want to do is when people select a name from cbxDrName,
the cbxDrComment will display a certain doctor's comments for selection. It
works well with the following codes if I open the SubForm by itself.
Private Sub cbxDrName_AfterUpdate()
Me![cbxDrComment].Requery
Me![ cbxDrComment] = ""
End Sub
RowSource in my cbxDrComment is SELECT tbComment.DrComment FROM tbComment
WHERE (((tbComment.DrName)=[Forms]![MySubForm].[cbxDrName]));
If I place MySubForm on a MainForm (MyMainForm), Access will pop up a
windows to let me input cbxDrName when I open MyMainForm with MySubForm on it.
Your help will be appreciated.
I have two bounded ComboBoxes, cbxDrName & cbxDrComment, on a SubForm
(MySubForm). What I want to do is when people select a name from cbxDrName,
the cbxDrComment will display a certain doctor's comments for selection. It
works well with the following codes if I open the SubForm by itself.
Private Sub cbxDrName_AfterUpdate()
Me![cbxDrComment].Requery
Me![ cbxDrComment] = ""
End Sub
RowSource in my cbxDrComment is SELECT tbComment.DrComment FROM tbComment
WHERE (((tbComment.DrName)=[Forms]![MySubForm].[cbxDrName]));
If I place MySubForm on a MainForm (MyMainForm), Access will pop up a
windows to let me input cbxDrName when I open MyMainForm with MySubForm on it.
Your help will be appreciated.