Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...it was ingeniously designed and all those clicks were for my own good... and that was even before I got my speedy and useful answer to my tekkie question that I eventually posted..."

Geography

Where in the world do Tek-Tips members come from?

Combobox: Using non-bound column data on selectionHelpful Member! 

VicM (Programmer)
25 Mar 12 21:22
Folks,
Is it possible to access a non-bound column's data from a selected record in a combobox?

I have a combobox containing 3 columns of data; the 1st column is the bound column containing a unique record number and is not visible; the second column is visible and contains the name associated with the unique number; and the third column is also visible and contains a boolean indication as to whether the record is active or archived.
So a record in the dropdown box might look like:

Smith, John | Yes

The hidden 1st column contains the unique record locator.

What I'm asking is: is it possible in code, say the AfterUpdate event of the combobox, to access the 'Yes' or 'No' that might be in the 3rd column?

I've tried: Me.myCombo.Column(2).Value (assuming base 0).  

But I get an error saying 'Object required'.

Any suggestions?

Thanks
Helpful Member!  MajP (TechnicalUser)
25 Mar 12 22:26
I think it is just
 Me.myCombo.Column(2)

This returns an actual value not an object.  So it does not have a value property and thus the error.
VicM (Programmer)
2 Apr 12 15:14
MajP
You were correct.  Thanks a bunch!
Vic

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close