Private Sub Form_Load()
Form_Input.cboRep.SetFocus
Rep = Form_Input.cboRep.Text
Like this, still doesnt get the variable, could it be b/c its attempting to get a value from a combo box?
Is there a way to set a Variable = to the combo box and retrieve the value from that variable on the old form?
I'm thinking that may be the case, but I know there is a way to get a value of a combo box. For now try this.
Create a Public (global) variable on your form at the top.
Set it's value to whatever the value is on the combobox just before you switch to the new form.
Call the global variable with [OldForm].GlobalVariable.
See if that helps. I'm thinking you may need to look at the value of the combobox or something. I'm not sure.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.