Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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 30th, 2004, 05:21 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Forms and Sub forms

I am creating a query where when I select the data I am selecting a Change ID number (not primary key but a mix of numbers and letters that can repeat), Date, and Description. What I would like to add is from a sub form called Drawing names a field called drawing name and from another sub form called Revision Notes a field called Revision Notes. (sub form are linked to the Change ID) When I view this query though it only displays the records that have both revision notes and Drawing name fields populated, it will not show records for the Change ID that don't have both of these sub form fields completed. My database will have some entries that will not have data in those fields though that will need to be displayed. How can I do this?

 
Old December 1st, 2004, 08:38 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You must be making your subforms from a query. You need to modify the query to have the proper join to show all records in both tables regardless of whether both tables have related records.

I would make the subforms from the tables to prevent this since more than likely if you are entering data in subforms, they are new records in "many" tables. You can always not include the fields you don't want your users to see, if any.

I would also not rely on a repeateable key or ID for the main form since unless you check the data visially on the main form, you may not enter the right data for the right record.

I hope this helps.

mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms ghall202 Access VBA 5 February 13th, 2007 10:32 AM
Opening forms from other forms Paulsh Access VBA 1 September 30th, 2004 06:54 PM





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