Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2004, 11:40 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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



 
Old November 18th, 2004, 10:39 AM
Registered User
 
Join Date: Nov 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.






Similar Threads
Thread Thread Starter Forum Replies Last Post
database related query dkvaseeta Pro VB Databases 2 February 22nd, 2007 10:59 AM
To show selected related field of DDL1 in DDL 2 skirpane .NET Framework 1.x 1 June 1st, 2006 03:04 PM
query related to function nimeshkumargupta SQL Server 2000 0 January 18th, 2005 04:05 AM
query related problem Abhinav_jain_mca General .NET 2 September 6th, 2004 02:46 AM
problems with related query apek PHP How-To 5 February 4th, 2004 02:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.