Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Combo Box Question

Status
Not open for further replies.

fabby1

Technical User
Mar 9, 2004
206
GB
Hi

I have a combo box chat has two columns Firstname and surname

How can I assign the Firstname to one global variable and the Surname to another global variable

I can do it on the Firstname as this is the first column

Code:
G_Forname = Me.cboUser.Value

How can I select the second column

thanks

Phil
 
Ello,

I think that;

Code:
G_Surname = Me.cboUser.Column(1)

should do the trick for you.

Hope that helps
Simon

----------------------------------------
My doctor says that I have a malformed public duty gland and a natural deficiency in moral fibre and that I'm therefore excused from saving universes.
----------------------------------------
 
Thanks

Works Great Simple when you know how
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top