Synchronising subform from another subform

P

PeterW

I have a form with a tab control with 2 tabs. Each tab control has a subform.
I want to synchronise the sumform on tab2 to the record in tab1.
name of form on tab1 is 'sbfrmQuotes' with a field 'QuoteNo'
name of form on tab2 is 'sbfrmQuoteComments' with linked field 'QuoteNo'
main form is called 'frmSalesQuotes'
I cannot get the second subform to synchronise with the first subform when I
move records on the first.
in the properties I have
link Child Fields as QuoteNo
link Master fields as Forms![frmSalesQuotes]![sbfrmQuotes]![QuoteNo]
It seems to work for first record but does not change when 1st record changes
I would be v grateful for any advice
 
J

John W. Vinson

I have a form with a tab control with 2 tabs. Each tab control has a subform.
I want to synchronise the sumform on tab2 to the record in tab1.
name of form on tab1 is 'sbfrmQuotes' with a field 'QuoteNo'
name of form on tab2 is 'sbfrmQuoteComments' with linked field 'QuoteNo'
main form is called 'frmSalesQuotes'
I cannot get the second subform to synchronise with the first subform when I
move records on the first.
in the properties I have
link Child Fields as QuoteNo
link Master fields as Forms![frmSalesQuotes]![sbfrmQuotes]![QuoteNo]
It seems to work for first record but does not change when 1st record changes
I would be v grateful for any advice

You'll need a "relay" textbox on the mainform. It can be invisible, but put a
textbox - txtRelay say - with

=[frmSalesQuotes]![sbfrmQuotes].Form![QuoteNo]

as its control source, and use [txtRelay] as the Master Link Field.
 
P

PeterW

Thank you once again
Works fine now

John W. Vinson said:
I have a form with a tab control with 2 tabs. Each tab control has a subform.
I want to synchronise the sumform on tab2 to the record in tab1.
name of form on tab1 is 'sbfrmQuotes' with a field 'QuoteNo'
name of form on tab2 is 'sbfrmQuoteComments' with linked field 'QuoteNo'
main form is called 'frmSalesQuotes'
I cannot get the second subform to synchronise with the first subform when I
move records on the first.
in the properties I have
link Child Fields as QuoteNo
link Master fields as Forms![frmSalesQuotes]![sbfrmQuotes]![QuoteNo]
It seems to work for first record but does not change when 1st record changes
I would be v grateful for any advice

You'll need a "relay" textbox on the mainform. It can be invisible, but put a
textbox - txtRelay say - with

=[frmSalesQuotes]![sbfrmQuotes].Form![QuoteNo]

as its control source, and use [txtRelay] as the Master Link Field.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top