Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4335924
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:44:14+00:00 2026-05-21T10:44:14+00:00

I have a combobox, and a button, that makes runs a query with the

  • 0

I have a combobox, and a button, that makes runs a query with the values it gets from combobox, but it does not seem to get the right value.
enter image description here

I tried using

[Forms]![Kooli otsing]![Combobox] 

or

[Forms]![Kooli otsing]![Combobox].[Text]

the query did not work, it seems like it does not get the value from combobox. because it worked with normal TextBox.

I ADDED EXPLAINING PICTURE!!!!!
enter image description here

ADDED PICTURE OF VBA EDITOR
enter image description here

ADDED PICTURE OF ERROR AND NO COMMENT AUTOCOMPLETE
enter image description here
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:44:14+00:00Added an answer on May 21, 2026 at 10:44 am

    Based on the latest comments you posted on your question, you want to use:

    [Forms]![Kooli otsing]![Combo19].Column(1)
    

    Here’s why. You said you have the following settings for your combobox:

    • column count: 2
    • bound column : 1
    • row source type : table/query
    • row source: SELECT [Haridusasutused].[ID], [Haridusasutused].[Nimetus] FROM Haridusasutused;

    Column count of 2 is telling Access to use the first two columns from your rowsource (the only two columns in this case). Bound column is telling access that the default value of the combobox should be the first column of the row source. In this case, that would be [Haridusasutused].[ID]. Often ID columns are autonumber fields.

    The reason you were having problems is that [Forms]![Kooli otsing]![Combo19] was returning data from the ID column (most likely a number) not “Elva Gümnaasium”. By adding the .Column(1) you are telling Access to choose the data from the second column (.Column is a zero-based array) of the rowsource, ie, “Elva Gümnaasium”.

    EDIT: Alternatively, you can change the bound column from 1 to 2 and leave the rest alone (ie, you won’t need the .Column(1) part at all).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Flex ComboBox that gets populated by a dataprovider all is well...
I have a ComboBox that I set up like this: this.cmbCustomerJob.DisplayMember = display; this.cmbCustomerJob.AutoCompleteMode
I have a combobox on my form that is bound to a generic list
I have a master-detail scenario where I have 1 ComboBox listing companies from an
I want to use a ComboBox with the DropDownList style (the one that makes
If have a control that acts like a record selector from a database, say,
I have gotten the code to work so that when I press the button,
This may have been already asked but I can't seem to find this specific
In my JSF page I have a combobox that updates a table when an
I have a ComboBox hosted in a ListView and I need changes in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.