G
GLT
Hi,
I am opening a form with the docmd.openform, and once the form opens I would
like to set the value of a combo box on that form automatically, based on a
record that was slected (double clicked) on the previous form.
The code below works and will open the form with the combox box value
completed, but for some reason when any of the first 6 records on the
original form are double clicked, the second form will open and the combo box
will be blank.
I have put a msgbox in to check the Me!Server values and they are all fine.
I have also checked the combobox values to make sure they exists there too
amd they do. Can anyone advise what might be causing this?
Cheers,
GLT.
MsgBox Me!Server
DoCmd.OpenForm "frm01_WServices"
Forms.frm01_WServices.cmbServer.Value = Me!Server
I am opening a form with the docmd.openform, and once the form opens I would
like to set the value of a combo box on that form automatically, based on a
record that was slected (double clicked) on the previous form.
The code below works and will open the form with the combox box value
completed, but for some reason when any of the first 6 records on the
original form are double clicked, the second form will open and the combo box
will be blank.
I have put a msgbox in to check the Me!Server values and they are all fine.
I have also checked the combobox values to make sure they exists there too
amd they do. Can anyone advise what might be causing this?
Cheers,
GLT.
MsgBox Me!Server
DoCmd.OpenForm "frm01_WServices"
Forms.frm01_WServices.cmbServer.Value = Me!Server