Hi, I'm new to this stuff and couldn't find an answer to this question.
What I'm trying to do is open a second form(not a subform) from my main form which uses the data selected in a combobox on the main form. I can get the second form to open and bring the selection from the combobox over to the second form. Since the second form is based off a different query. I cannot get it to requery for the life of me.
The second form shows the right selection in the combobox but the data beneath is for the first record of the query associated with that form. When I grab the pull down arrow next to the combobox, it will re-populate with the correct data.
I want it to automatically repopulate after the form has opened. Here is my code right now. Any help would be appreciated.
DoCmd.OpenForm "Form2"
Forms![Form2]![Combo329] = Forms![Form1]![Combo0]
Forms![Form2]![Combo329].Requery
What I'm trying to do is open a second form(not a subform) from my main form which uses the data selected in a combobox on the main form. I can get the second form to open and bring the selection from the combobox over to the second form. Since the second form is based off a different query. I cannot get it to requery for the life of me.
The second form shows the right selection in the combobox but the data beneath is for the first record of the query associated with that form. When I grab the pull down arrow next to the combobox, it will re-populate with the correct data.
I want it to automatically repopulate after the form has opened. Here is my code right now. Any help would be appreciated.
DoCmd.OpenForm "Form2"
Forms![Form2]![Combo329] = Forms![Form1]![Combo0]
Forms![Form2]![Combo329].Requery