Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default return item from second column from2 column combobox

I am using cboMonth3(cboMonth3.ListIndex - 1, 1) but I get type mismatch can
someone help please?
Regards
Charles
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default return item from second column from2 column combobox

G'day Charles

Not sure if this is any help to you, but here we go

I use Access, the first column in a combo is 0, then next is 1, and so on.

Type mismatch generally is if you try to insert text into a field that is
designated as value.

Essentially if your cell is formatted as a number and your second column is
text, that will give you the error.

Again, in access, in the AfterUpdate of a Combo you can pass the value of
what is in your second column to another field. eg

This is a piece of VBA code

Private Sub CSubCombo_AfterUpdate()
Me.CustomerState = Me.CSubCombo.Column(1)
Me.CustomerPC = Me.CSubCombo.Column(2)
DoCmd.GoToControl "PhoneBus"
End Sub

I'm not sure of the equivalent in VB.

Try passing your second column value to another cell with a General format
and see if it solves your problem.

HTH
Mark.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return column number from column header text Roger[_3_] Excel Discussion (Misc queries) 4 February 14th 08 09:40 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Find max value in one column and return the value of corrosponding cell in different column [email protected] Excel Worksheet Functions 5 October 16th 07 12:33 PM
URGENT -- search in string for a value in another column, if found, return value from next column samkshah Excel Programming 4 October 3rd 05 04:13 PM
Excel - Return column alphabet from column number Sathyaish Excel Programming 2 April 7th 04 02:40 PM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"