How to add a combo box on a form so it controls the other data on the form?

The images attached (Form-1 and Form-2)give an explanation of the problem and what I am trying to accomplish.
The Incident Title on the “Condition” form is a working example of what I am trying to accomplish on the Causal form.
RC.zip
Form-1.jpg
Form-2.jpg
cssc1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
So you want to be able to select an Incident Title and have all the related information for that Incident displayed on the form?

If so, it looks like you could just find the related Event record, and set the Form's Bookmark to that, which should then show all the related records in the subforms. To do that:

Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone

rst.FindFirst "Incident_ID=" & Me.YourIncidentTitleCombo.Column(0)
If Not rst.NoMatch Then
  Me.Bookmark = rst.Bookmark
Else
  Msgbox "Incident not found"
End If

You'd add that in the AfterUpdate event of the Incident combo. I'd suspect the RowSource of the Incident combo would be the same as the Incident combo on the Conditions_1of3_frm.
0
cssc1Author Commented:
yes, that is exactly what I am trying to do.

I added your code to the afterupdate and now I am getting an error and nothing is in the combo box.

I don't know what to do at this point.

Please see attached images and db
error-3077.jpg
error--.jpg
RC-2.zip
RC-2.accdb
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Is Incident_ID a Text value, or a Numeric value?

If it's Text:

rst.FindFirst "Incident_ID='" & Me.Combo26.Column(0) & "'"

Also, what's the RowSource for Combo26?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

cssc1Author Commented:
Incident_ID is a Numeric value.

I think the Row Source is the table "1-Incident-tbl" and the field to populate the Combo 26 is "INCIDENT TITLE:".

I hope this helps, thank you
0
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I think the Row Source is the table "1-Incident-tbl"
Open the form in Design view and post the RowSource of the query here.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cssc1Author Commented:
more errors.

I am not sure I am doing this part correctly "and post the RowSource of the query here".

Also, what query di I post and where is it posted?

see attached image
error--3.jpg
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.