p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access VBA
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 17th, 2004, 11:40 PM
Authorized User
Points: 133, Level: 2
Points: 133, Level: 2 Points: 133, Level: 2 Points: 133, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2003
Location: Upper Marlboro, Maryland, USA.
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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old November 18th, 2004, 10:39 AM
Registered User
Points: 18, Level: 1
Points: 18, Level: 1 Points: 18, Level: 1 Points: 18, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2004
Location: , , .
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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 04: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 03:46 AM
problems with related query apek PHP How-To 5 February 4th, 2004 02:06 PM



All times are GMT -4. The time now is 07:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc