I have a form that got crowded so I moved a portion of the form to a new from. Unfortunately, I was getting data from the moved portion when it was still on the main form . When the moved portion was on the main form in a textbox on GotFocus event I had the following line that worked:
Me.numbercb was acombobox
When I moved data to the new form, I Modified the control to be a listbox called Phones, and the new form is CCCarsPhonesfrm, and tried the following code:
I get this error:
Tried several attempts ant getting the syntax right, and read articles, all to no avail.
Thanks
Code:
'Me.numbercalledtb = Me.numbercalledcb()
Me.numbercb was acombobox
When I moved data to the new form, I Modified the control to be a listbox called Phones, and the new form is CCCarsPhonesfrm, and tried the following code:
Code:
Me.numbercalledtb = [Forms]![CCCarsPhonesfrm]![Phones].ItemData(0)
I get this error:
Tried several attempts ant getting the syntax right, and read articles, all to no avail.
Thanks