Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / March 2008

Tip: Looking for answers? Try searching our database.

return item from second column from2 column combobox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vqthomf - 27 Mar 2008 15:35 GMT
I am using cboMonth3(cboMonth3.ListIndex - 1, 1) but I get type mismatch can
someone help please?
Regards
Charles
NoodNutt - 28 Mar 2008 12:04 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.