Re: Combo box question

From: Gerben Kessen (gerben.kessen(_at_)wantit.nl)
Date: 08/06/04


Date: Fri, 6 Aug 2004 22:27:01 +0200

Hi,

You can have multiple columns in a combo box, set
- columncount to 2.
- Rowsource to "table.field1, field2"
- If you don't want to display the id field, set the width of that column to
0; Columnwidth to 250,0 and columnlines to .f.
- Set the boundColumn to '2' if the second column is the id field

The value of the combobox now contains the id of the selected item, so you
can use it in your sql query.

Hth,
Gerben Kessen.

"twnety0ne@yahoo.com" <twnety0neyahoocom@discussions.microsoft.com> wrote in
message news:0458C2F8-D1BF-466E-86D9-2042A20EE37C@microsoft.com...
> How do i assign both the uniqueid and the value from a table to a combo
box?
> Like for example if this is the data in a table
> 1 Blue
> 2 Red
>
> etc
> where 1 is the unique id and Blue is the value, how do i assign 1 as the
> index of the combo box and how do i pass it to a sql query?
Helppppppppppppp
>
>



Relevant Pages

  • Re: [PHP] Counting Occurrences within an If statement
    ... statement in the SQL query so you don't return so many rows. ... I am pulling 7500 rows from a MySQL database, but I only want to display a ... display a row in a table ...
    (php.general)
  • Performing an SQL query in VBA
    ... I need to perform a SQL query in VBA and display the result in a ... txtLName_Changeevent and display the result in txtNum. ... just getting it to a textbox is great. ...
    (microsoft.public.access.gettingstarted)
  • Re: SQL query: how can I hide a column in output?
    ... I've the following SQL query: ... Actually, I need the alias client_no for further processing, but I ... You are not required to show that column, but your SELECT clause needs to show at least one column. ... If you are writing your own application, you do not have to display the column's value in that application if you do not want to. ...
    (comp.databases.oracle.server)
  • Excel Spreadsheet Object - Maximum Amount of Data
    ... I am using an excel spreadsheet object on a web page to display the ... results of a SQL query to my users. ... amount of data these objects can hold? ...
    (microsoft.public.office.developer.web.components)
  • Completed Queries
    ... I'm using the load event and executing some code on the records returned from ... an SQL query that is the rowsource for the form but not all of the records ...
    (microsoft.public.access.queries)