R
Rafael
I have a custom contact form with the following custom field: Company Size
The textbox name and the field name are the same. I changed the new version
of the form so that the textbox "Company Size" is now linked to field
"User1".
Of course the company size data is now hidden and I'm having problems
accessing the data in "Company Size" and copying it to the new field.
So in short, two fields now share the same textbox name. How can I access
the original company size field and retrieve the data in it?
The code below is what I'm using to try and copy the data from the old field
to the new one.
For x = 1 To myOlSel.Count
Set myContact = myOlSel.Item(x)
myContact.User1 = myContact.UserProperties.Find("Company Size").Value
myContact.Save
Next x
The error I get on the third line is: Object variable or with block not set
Thanks,
Rafael
The textbox name and the field name are the same. I changed the new version
of the form so that the textbox "Company Size" is now linked to field
"User1".
Of course the company size data is now hidden and I'm having problems
accessing the data in "Company Size" and copying it to the new field.
So in short, two fields now share the same textbox name. How can I access
the original company size field and retrieve the data in it?
The code below is what I'm using to try and copy the data from the old field
to the new one.
For x = 1 To myOlSel.Count
Set myContact = myOlSel.Item(x)
myContact.User1 = myContact.UserProperties.Find("Company Size").Value
myContact.Save
Next x
The error I get on the third line is: Object variable or with block not set
Thanks,
Rafael