Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

reference combo box on form problem specific column from a function call

Posted on 2014-09-10
3
Medium Priority
?
455 Views
Last Modified: 2014-09-10
Access 2010 vba.

Simply trying to reference a combo box on a form to get a value.  from a function call

' s2 = "BR2GCK"
      s2 = Forms!Form1![Combo5].Column(1)


ME keyword will not work in this case.
cant seem to get the syntax right

Thanks
fordraiders
0
Comment
Question by:fordraiders
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 40314738
is this giving you a problem

  s2 = Forms!Form1![Combo5].Column(1)

did you set the Column Count of the combo to at least 2

.Column(1)  refers to the 2nd column of the row source of the combo box.
0
 
LVL 3

Author Comment

by:fordraiders
ID: 40314790
brain lapse..
Thanks
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 40314792
thanks
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question