Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 20th, 2008, 08:21 AM
Registered User
 
Join Date: Mar 2008
Location: , , .
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default subforms are not showing up

I have a main form with a tab control. On various tabs I have included a number of different subforms all connected to the main page via the TractID.

I would like the user to be able to enter data and view data from these subforms. For example, if they are viewing Tract Number 1, then all the subforms will show data pertaining to Tract Number 1.

The problem I am currently experiencing is that if the underlying tables which the subforms are based upon do not have any data for a tract then the subforms do not show up at all. When you view the main page and click on the tab to enter data into the subform there is just a big white box. None of the fields, labels or formatting for the subform are visible. I'm at a complete loss.

I did not use VBA to create the main form and subforms... I used the old fashion way of creating the main form and subform using the wizard.

Reply With Quote
  #2 (permalink)  
Old March 20th, 2008, 10:45 PM
Friend of Wrox
 
Join Date: Mar 2004
Location: Yorba Linda, California, USA.
Posts: 217
Thanks: 0
Thanked 1 Time in 1 Post
Default

Welcome, BJ
Please post a bit more information:
A few things to check:
1) Is the form Read-only? If so, that is Access's behavior with unpopulated subforms.
2) Check the property sheet to confirm that the LinkChild and LinkParent fields have your key (tractID).
3) If the subform recordset is based on a query, is TractID the FIRST field in the query? (If not, change it so that it is and see if that takes care of your problems.)
4) And of course........What is the relationship between the recordset for the main form and the subforms? (It should be 1:many with the 1 side being on the main form and the many side on the subform).

HTH-

Loralee



Reply With Quote
  #3 (permalink)  
Old March 22nd, 2008, 08:39 AM
Registered User
 
Join Date: Mar 2008
Location: , , .
Posts: 7
Thanks: 0
Thanked 1 Time in 1 Post
Default

Loralee...

Ok so I'm just a tad bit embarrassed that the solution was so dang easy. I simply had to change the properties to Allow Additions, Edits, Deletions, etc.

Thank you sooooo much for your help.

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subforms 150563a Access 1 June 29th, 2007 04:57 AM
subforms ajmil11 Access 2 January 19th, 2006 11:16 PM
Trouble with SubForms KeithHungate Access VBA 1 May 22nd, 2004 12:50 PM
Subforms V Access VBA 1 April 21st, 2004 11:48 AM



All times are GMT -4. The time now is 12:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.