S
Stephen Lynch
I have a grid on form 1. I have detail records for the same table on form 2.
I want to doubleclick the row on Form 1 and carry forward the ssnumber to
Form 2, populate the combo box, refresh the combo to select the employee
that i clicked on in form 1.
Here's what I have done:
Added on the doubleclick method of the field in grid.
DoCmd.openform.form1
On the onload event of form2,
I put
[combobox1] =
Forms![EmployeeMain]![EmployeesDetail]![Social Security]
It seems like it is carring the value, but the combo is not refreshing.
Questions:
1. Is there a command to issue a click to the combo. I think I an populating
it with the value but now I need to click it.
2. Can I put this code on the selected row to open Form 2 and carry the
value of the field SSNumber?
I want to doubleclick the row on Form 1 and carry forward the ssnumber to
Form 2, populate the combo box, refresh the combo to select the employee
that i clicked on in form 1.
Here's what I have done:
Added on the doubleclick method of the field in grid.
DoCmd.openform.form1
On the onload event of form2,
I put
[combobox1] =
Forms![EmployeeMain]![EmployeesDetail]![Social Security]
It seems like it is carring the value, but the combo is not refreshing.
Questions:
1. Is there a command to issue a click to the combo. I think I an populating
it with the value but now I need to click it.
2. Can I put this code on the selected row to open Form 2 and carry the
value of the field SSNumber?