Hi all,
Well, that's it! I give up & freely admit I haven't got a clue how to build a listbox correctly when I'm using related tables. This is despite the fact I've done it quite a few times. Usually I stumble over the answer, but I can never see what I did, nor recreate it.
I have a form with a listbox. Behind the listbox is a query from a table. Two fields on the table are lookup fields linked to two other tables:
MainTable query: CustomerID / ItemID
CustomerTable: CustomerID / CustomerName
ItemTable: ItemID / ItemName
So, CustomerID & ItemID on MainTable are actually the primary keys / record IDs of the related tables. Here is the basis of my problem: when I run the query on its own, it displays the text; when I run the listbox, it just displays the numbers! For example:
MainTable query: CustomerID= "Name of Customer" / ItemID= "Name of Item"
Listbox running MainTable query: CustomerID= 27 / ItemID= 521
It's frustrating that the query works, surely showing my relationships are correct, but the listbox won't show the same. I must be missing something simple!
Jon
Well, that's it! I give up & freely admit I haven't got a clue how to build a listbox correctly when I'm using related tables. This is despite the fact I've done it quite a few times. Usually I stumble over the answer, but I can never see what I did, nor recreate it.
I have a form with a listbox. Behind the listbox is a query from a table. Two fields on the table are lookup fields linked to two other tables:
MainTable query: CustomerID / ItemID
CustomerTable: CustomerID / CustomerName
ItemTable: ItemID / ItemName
So, CustomerID & ItemID on MainTable are actually the primary keys / record IDs of the related tables. Here is the basis of my problem: when I run the query on its own, it displays the text; when I run the listbox, it just displays the numbers! For example:
MainTable query: CustomerID= "Name of Customer" / ItemID= "Name of Item"
Listbox running MainTable query: CustomerID= 27 / ItemID= 521
It's frustrating that the query works, surely showing my relationships are correct, but the listbox won't show the same. I must be missing something simple!
Jon