T
Thomas Wright
I'm using the following VBA code to setup a value for a comboBox in a Form.
It works well as long as on the form you manually drop down the box to find
the value. I would like to have the value just sent to a TextBox. Deleting
ROWSOURCE and putting parentheses around the expression only results in a
TextBox that shows the formula. How can I get this value to just pop up in
my TextBox? This should be just automated without the requirement to
manually look it up.
I've been working on this for days,
Thanks,
Tom Wright
Me!PrevAdmission.RowSource = "SELECT [Hospital Admissions
Query2].[CountOfLaMerNumber], [Hospital Admissions
Query2].[LaMerNumber],[Hospital Admissions Query2].[FirstName],[Hospital
Admissions Query2].[LastName] FROM [Hospital Admissions Query2] WHERE
[Hospital Admissions Query2].[LaMerNumber]=[Forms]![Hospital Discharge
Information for Each Patient].[LaMerNumber].Value;"
It works well as long as on the form you manually drop down the box to find
the value. I would like to have the value just sent to a TextBox. Deleting
ROWSOURCE and putting parentheses around the expression only results in a
TextBox that shows the formula. How can I get this value to just pop up in
my TextBox? This should be just automated without the requirement to
manually look it up.
I've been working on this for days,
Thanks,
Tom Wright
Me!PrevAdmission.RowSource = "SELECT [Hospital Admissions
Query2].[CountOfLaMerNumber], [Hospital Admissions
Query2].[LaMerNumber],[Hospital Admissions Query2].[FirstName],[Hospital
Admissions Query2].[LastName] FROM [Hospital Admissions Query2] WHERE
[Hospital Admissions Query2].[LaMerNumber]=[Forms]![Hospital Discharge
Information for Each Patient].[LaMerNumber].Value;"