|
|
 |
| Access VBA Discuss using VBA for Access programming. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access VBA section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 17th, 2004, 11:40 PM
|
|
Authorized User
|
|
Join Date: Sep 2003
Location: Upper Marlboro, Maryland, USA.
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Related Field Does Not Display in Query
Hi,
I have a query that is made from three tables. The query looks like the following:
tblPriceList.Description
tblSupplyOrderInvoiceNumber.InvoiceNumber
tblSupplyOrderInvoiceNumber.Vender
tblSupplyOrders.InvoiceNumber (related to InvoiceNumber in tblSupplyOrderInvoiceNumber)
tblSupplyOrders.Description related to Description in tblPriceList)
tblSupplyOrders.UnitOrdered
tblSupplyOrder.Date
tblSupplyOrders.Cost
When I include all three tables in the query, no records are displayed, although I am expecting 17 test records to show. However, when I include tblSupplyOrdersInvoiceNumber and tblSupplyOrders by themselves, the records are displayed, but the contents in the tblSupplyOrders.Description field displays as a number (The record number) and the not the full text. The full text of what I want to show is in tblPriceList.Description, but when I add it to the query, I do not get any records.
I hesitate saying for sure, but I believe that I have the relationships set properly. In the Relationship window, the relationship line between tblSupplyOrderInvoiceNumber.InvoiceNumber and tblSupplyOrders.InvoiceNumber show a one to many relationship. However the relationship line between tblPriceList.Description and tblSupplyOrders.Description does not show the symbols 1 to many(there is only a straight line), but when I open the edit window, it says one to many. Does this matter?
Thanks in advance.
David Tolson
|

November 18th, 2004, 10:39 AM
|
|
Registered User
|
|
Join Date: Nov 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Do you have foreign key constraint between tblPriceList.Description and tblSupplyOrders.Description? Did you check for NULL values in field?
If you're not checking for NULL it can be cause.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |