473,383 Members | 1,880 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

List Box lookup

jr
Have created a form
I have created 2 list boxes

I have a query showing in column 1, a 3 digit number ie 200
In column 2 of the query there is a description for 200 which is "Other
Debtors"
Of course this isnt the only row - There are in fact 300 approx - all unique

List box 1 Will contain the value the user wants to type in to look up the
description

List box 2 will show the loookup asnwer

What do you think is best
May 21 '06 #1
3 2437
"jr" <jr************@virgin.net> wrote in
news:3U***************@newsfe2-gui.ntli.net:
Have created a form
I have created 2 list boxes

I have a query showing in column 1, a 3 digit number ie
200 In column 2 of the query there is a description for 200
which is "Other Debtors"
Of course this isnt the only row - There are in fact 300
approx - all unique

List box 1 Will contain the value the user wants to type in to
look up the description

List box 2 will show the loookup asnwer

What do you think is best

I think it would be best for you to learn to express yourself in
a much more succinct fashion.

(Your rambling above does not give us any indication of what you
want to know.)

--
Bob Quintal

PA is y I've altered my email address.
May 21 '06 #2
jr
So are you saying I should not ramble -
Query!
Query1
Select El1code,el1Desc,el1level
from OAS.EL1_Element
Where El1code not null and El1level = 1
1,2;

Form 1 contains 2 list boxes
List box1 = User input - ie user will input El1Code
Listbox2 = User feedback ie user will see description

Query1 results are 300 rows approx

My question is how do I get ListBox2 to reference the value in listbox1 and
lookup the eqiv description in the Query1.

Have tried Expression builder and can refrence Listbox1 but cant seem to
find an appropriate lookup function for listbox2 and the query1.
"Bob Quintal" <rq******@sympatico.ca> wrote in message
news:Xn**********************@207.35.177.135...
"jr" <jr************@virgin.net> wrote in
news:3U***************@newsfe2-gui.ntli.net:
Have created a form
I have created 2 list boxes

I have a query showing in column 1, a 3 digit number ie
200 In column 2 of the query there is a description for 200
which is "Other Debtors"
Of course this isnt the only row - There are in fact 300
approx - all unique

List box 1 Will contain the value the user wants to type in to
look up the description

List box 2 will show the loookup asnwer

What do you think is best

I think it would be best for you to learn to express yourself in
a much more succinct fashion.

(Your rambling above does not give us any indication of what you
want to know.)

--
Bob Quintal

PA is y I've altered my email address.

May 21 '06 #3
"jr" <jr************@virgin.net> wrote in
news:GQ****************@newsfe2-win.ntli.net:
So are you saying I should not ramble -
Query!
Query1
Select El1code,el1Desc,el1level
from OAS.EL1_Element
Where El1code not null and El1level = 1
1,2;

Form 1 contains 2 list boxes
List box1 = User input - ie user will input El1Code
Listbox2 = User feedback ie user will see description

Query1 results are 300 rows approx

My question is how do I get ListBox2 to reference the value in
listbox1 and lookup the eqiv description in the Query1.

Have tried Expression builder and can refrence Listbox1 but
cant seem to find an appropriate lookup function for listbox2
and the query1.

why are you saying you are using two listboxes?
Textboxes would be better, or a single listbox with two columns,

Either way, you need to put the value for the value typed into
the listbox1 by setting the controlsource for textbox2 to
=dLookup("el1Desc","Query1","El1code = " & Forms!nameofForm!
textbox1")
--
Bob Quintal

PA is y I've altered my email address.
May 21 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul | last post by:
Hi, When should I use a list (in table properties: like Ford;Mercedes;BMW;Audi ) and when should I use a lookup table?? And second question: IF I use a lookup table, should I always make a...
1
by: Dave | last post by:
I have a problem which I know there is an answer to but have so far been unsuccessful in finding it. It is quite simple in theory. I have created a form which uses a table for lookup values and...
2
by: David Pratt | last post by:
Hi. I like working with lists of dictionaries since order is preserved in a list when I want order and the dictionaries make it explicit what I have got inside them. I find this combination very...
9
by: William Meyer | last post by:
hi, I need to get the index of an object in a list. I know that no two objects in the list are the same, but objects might evaluate as equal. for example list = for object in list:...
4
by: mustang07 | last post by:
I need this program to find all occurences of a name and display them. If I enter Palmer, I need it to display all the Palmers in the list. Can anyone help me Please. Thank You!! #include...
1
by: Nestor01 | last post by:
I use a lookup table which contacts 2 fields (item#, name) When a customer places an order, the order form contains a drop down to select the item by name (from the lookup table). The detail is...
20
by: Seongsu Lee | last post by:
Hi, I have a dictionary with million keys. Each value in the dictionary has a list with up to thousand integers. Follow is a simple example with 5 keys. dict = {1: , 2: , 900000: , 900001:...
1
by: freetime | last post by:
Greetings, This is my first post so I will try to be brief and accurate. I have a report that uses 9 user selectable filters (Dates, Y/N's as Combo Boxes and 4 Multi-Select List Boxes. ...
12
by: =?Utf-8?B?THVpZ2k=?= | last post by:
Hi all, I have a dictionary like this: Dictionary<List<string>, List<string>> How can I iterate in it? Thanks very much. -- Luigi
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.