Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform data not showing in Access 2007

Status
Not open for further replies.

JimmyN

Programmer
Sep 2, 2000
26
0
0
GB
I have a database in Access 2000 format. It has a main form with two subforms. The data on the subforms comes from queries based on the values of two controls on the main form rather than by a Master/Child link. Everything works perfectly in Access up to version 2003. In Access 2007 one of the subform's data does not show. If I open the subform independently then the data shows fine but not when it is part of the main form. The other subform works as it should.

Can anyone help with this one?

 
I have found that in certain cases Access seems to add link child and master fields at runtime. I wonder if it could be the case here?
 
I have checked and both the Link Master Fields and Link Child Fields properties are null.
 
Isn't it so that subforms open first?

Pampers [afro]
Keeping it simple can be complicated
 
Hi have tried a requery of the subform? in the afterupdate event of the two criteria controls would seem to be the appropriate place, but not sure since you do not explain how they are populated or if they are bound/unbound.

does not explain difference in behaviour between 2003 vs 2007 of course

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 

Wouldn't the form's "Private Sub Form_Current() "
be a better fitting event for the requery since it is fired if the user chances records without modifing them.

Just my $.02
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top