Greg, Thank you for responding. I really appreciate this and it is helpful,
however, I do not have a Row Source. I do have a Record Source. Would I do
the same thing here?
Let me give you my scenario
I have 2 tables ; One is Plan
The other is StudentPlan
I can run an update query to update all of the Student plans if I choose a
Method for every student.
However, this is how I really need it to work:
I have a form based on a Query that displays fields from the StudentPlan and
the StudentData Tables.
The Method field references the Method field in Plan via a ComboBox.
I need for the update to occur for each student as we meet with that student
and determine the proper Method for just him.
I want the fields in the StudentPlan to update to what is currently in the
Plan (with the same Method) when a Method is chosen, and I want this to occur
for only this student so that we can evaluate his Plan and make changes in
some of the fields if needed.
Greg Helmbrecht said:
I do something similar for Companies, when a company name is picked from a
list it automatically inserts the address information for that company. On
the form properties under row source query:
SELECT DISTINCTROW [Companies].[Company], [Companies].[Address],
[Companies].[City], [Companies].[St], [Companies].[ZIP] FROM [Companies];
Then the After update - Event Procedure Code:
Private Sub Company_AfterUpdate()
Dim ctl As Control
Set ctl = Me!Company
If Not IsNull(ctl) Then
Me!Address = ctl.Column(1)
Me!City = ctl.Column(2)
Me!St = ctl.Column(3)
Me!Zip = ctl.Column(4)
End If
'inserts company info when company name is chosen from list
End Sub
Hope this helps.
BKM said:
I know this is probably easy, but I am too new to Access.
I have an update query that I would like to invoke on the current record
when the field changes in a combo box field on the form.
For examplee: when the user makes a choice in the Method field, the update
query is invoked for that record and the corresponding fields are updated.
How do I do this?