A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Subform Value Does Not Display in Form (but will in table)



 
 
Thread Tools Display Modes
  #1  
Old January 3rd, 2010, 10:58 AM posted to microsoft.public.access.forms
GDCross
external usenet poster
 
Posts: 23
Default Subform Value Does Not Display in Form (but will in table)

I have an Instructors form with two tabs. In one tab called Courses, I have a
subform called sfrmInstructorCourses. Since an instructor can train many
courses, I have this subform displayed as a datasheet. In the subform, there
are two fields of interest, the course number combo box and non-standard
classes combo box. I have the subform designed such that if a XXX999 course
number is chosen (in which XXX can be any set of letters), the non-standard
classes combo will contain classes for that course number (one to many
relationship). All works great that is until I reopen the Instructors form as
the non-standard class field in the subform does not display any values. When
I reselect the course number, the correct non-standard class is displayed.
When I open the table containing this data, tblInstructorCourses, the correct
non-standard classes display. Can anyone help me figure out how to get the
non-standard class data to display when I open the Instructors form? Thanks
in advance.
  #2  
Old January 3rd, 2010, 11:11 AM posted to microsoft.public.access.forms
Tom Wickerath
external usenet poster
 
Posts: 3,914
Default Subform Value Does Not Display in Form (but will in table)

Hi GD,

Open the appropriate table, and check to ensure that a foreign key value is
being written to the table, for the many-side records. Also, in form design
view, verify that the combo boxes that are not displaying data correctly have
the intended field specified as the Control Source.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________

"GDCross" wrote:

I have an Instructors form with two tabs. In one tab called Courses, I have a
subform called sfrmInstructorCourses. Since an instructor can train many
courses, I have this subform displayed as a datasheet. In the subform, there
are two fields of interest, the course number combo box and non-standard
classes combo box. I have the subform designed such that if a XXX999 course
number is chosen (in which XXX can be any set of letters), the non-standard
classes combo will contain classes for that course number (one to many
relationship). All works great that is until I reopen the Instructors form as
the non-standard class field in the subform does not display any values. When
I reselect the course number, the correct non-standard class is displayed.
When I open the table containing this data, tblInstructorCourses, the correct
non-standard classes display. Can anyone help me figure out how to get the
non-standard class data to display when I open the Instructors form? Thanks
in advance.

 




Thread Tools
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
Forum Jump


All times are GMT +1. The time now is 06:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.