By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,994 Members | 2,073 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,994 IT Pros & Developers. It's quick & easy.

listbox2

P: n/a
I could already solve the problem that a textbox had the value of a
line of a listbox, now what I need is that another textbox of another
form has the value of a listbox because access it returns me error that
an object is required. the textbox this it is the expression that
digitando am:

Formularios![Precios Nestle]! [txtcodigo].value = listbox.Column(0)

Aug 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

Jonnh wrote:
I could already solve the problem that a textbox had the value of a
line of a listbox, now what I need is that another textbox of another
form has the value of a listbox because access it returns me error that
an object is required. the textbox this it is the expression that
digitando am:

Formularios![Precios Nestle]! [txtcodigo].value = listbox.Column(0)
Maybe because you're referring to ALL values in the listbox? Are you
dealing with the ItemsSelected collection? I would assume so....

you need to do something like:

For Each varItem In Me.List2.ItemsSelected
'---process each item here...
Me.List7.AddItem (Me.List2.ItemData(varItem))
Next varItem

you should probably start searching through NWind and the help files.
you might find stuff in there you can use.

Aug 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.