PC Review


Reply
Thread Tools Rate Thread

Two columns in List box from select statement

 
 
Therese
Guest
Posts: n/a
 
      25th Apr 2006
I have problems showing both values from a select statement in my list
box.

This is my query

lstArtOversiktOrdre.RowSource = "Select T_ARTIKKEL.NAVN,
T_ART_OVERSIKT_ORDRE.ANTALL From " & _
"T_ART_OVERSIKT_ORDRE, T_ARTIKKEL "
& _
"Where
T_ART_OVERSIKT_ORDRE.ID_ORDRE =" & publicVariable & _
"and T_ART_OVERSIKT_ORDRE.ID_ART =
T_ARTIKKEL.ID_ART"

The settings of the box are
ColumnCount: 2
Bound column: 1
multiple select: simple

What am I doing wrong here?
I have tried different solutions, but none of them seem to work...
I would be grateful for any help

Therese

 
Reply With Quote
 
 
 
 
Allen Browne
Guest
Posts: n/a
 
      25th Apr 2006
Did you set the Column Widths property?
It should contain 2 values, separated, e.g.:
1"; 1.5"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Therese" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have problems showing both values from a select statement in my list
> box.
>
> This is my query
>
> lstArtOversiktOrdre.RowSource = "Select T_ARTIKKEL.NAVN,
> T_ART_OVERSIKT_ORDRE.ANTALL From " & _
> "T_ART_OVERSIKT_ORDRE, T_ARTIKKEL "
> & _
> "Where
> T_ART_OVERSIKT_ORDRE.ID_ORDRE =" & publicVariable & _
> "and T_ART_OVERSIKT_ORDRE.ID_ART =
> T_ARTIKKEL.ID_ART"
>
> The settings of the box are
> ColumnCount: 2
> Bound column: 1
> multiple select: simple
>
> What am I doing wrong here?
> I have tried different solutions, but none of them seem to work...
> I would be grateful for any help
>
> Therese



 
Reply With Quote
 
 
 
 
Therese
Guest
Posts: n/a
 
      25th Apr 2006
Thanks a lot for your answer, now it is fixed

 
Reply With Quote
 
Therese
Guest
Posts: n/a
 
      25th Apr 2006
Thanks a lot for your answer, now it is fixed

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Correct syntax for SELECT statement within a SELECT statement. =?Utf-8?B?R3JlZw==?= Microsoft Access ADP SQL Server 2 16th Oct 2006 09:20 PM
Limit list box by two columns of another list box =?Utf-8?B?cmljaGFyZGI=?= Microsoft Access Form Coding 4 2nd Mar 2006 04:28 PM
Re: writing one combo box with two columns to two columns in table John Vinson Microsoft Access Forms 0 22nd Jul 2005 07:23 PM
Re: writing one combo box with two columns to two columns in table Rick B Microsoft Access Forms 3 21st Jul 2005 06:11 PM
writing one combo box with two columns to two columns in table sushi155 Microsoft Access Forms 0 21st Jul 2005 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 AM.