Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2007

Tip: Looking for answers? Try searching our database.

Subform does not show  details records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan T - 17 May 2007 08:27 GMT
My main form links to Invoice table:
ID
InvoiceNumber
Date
Sales

My subform links to InvoiceItem table:
ID
ItemNumber
Qty
Price
InvoiceID

These are Data tab of the sub-form:
Source Object: frmInvoice
Link Child Fields: InvoiceID
Link Master Fields: ID
Enabled: Yes
Locked: No

So on the main form whatever I navigator my invoices, the subform is always
empty.
Maurice - 17 May 2007 08:57 GMT
Alan,

Your tables have identical ID-names. This makes it very hard to distinguish
the two of them. The problem could be that you are referencing the wrong ID.
By making the ID-field name more clear you are excluding a possible reference
problem.

Is the subform connected to the right ID?

Maurice

> My main form links to Invoice table:
> ID
[quoted text clipped - 18 lines]
> So on the main form whatever I navigator my invoices, the subform is always
> empty.
Alan T - 17 May 2007 13:16 GMT
Hi,

Yes, the subform is referencing the right ID.
On the Data tab:
Link Child Fields: InvoiceID
Link Master Fields: ID

The InvoiceID is the foreign key in the tblInvoiceItems.
So basically tblInvoiceItems.InvoiceID <--> tblInvoices.ID

> Alan,
>
[quoted text clipped - 33 lines]
>> always
>> empty.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.