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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

two subform link problem

Status
Not open for further replies.
May 24, 2005
30
US
I have a form which contains two subforms
subform1 link with main form by ORDERID
subform2 link with subform1 by CUSTOMERID

subform1 works well when ORDERID changes
but subform2 only list the data according to the first data of subform1, when I change subform1 sorting from ascending to descending, it can display the different data, but still only the related data from the first data in subform1.

can anyone tell me how to solve this problem!

thanks in advance!

Jeffery
 
Have you tried to Requery subform2 in the Current event procedure of subform1 ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
thanks for quickly reponse

but could you please explain more detail?

thanks
 
How are ya jefferyzhong . . . . .
jefferyzhong said:
[blue]. . . but subform2 only list the data according to the first data of subform1 . . .[/blue]
You say subForm2 is linked to subForm1 via [blue]CUSTOMERID[/blue]. If subform2 is linked [blue]properly thru Master/Child properties[/blue] to subform1, you shouldn't have this problem.

If you change record on subform1, does subform2 change accordingly?

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top