I am attempting to requery 2 of 3 subforms on a main form. I am using VBA with the following code
Dim ctl, ctl1 As Control
Set ctl = Forms!checkprice_design_sales!add_des_prices
Set ctl1 = Forms!checkprice_design_sales!Add_colours_for_the_design
DoCmd.GoToControl ctl.Name
Me.Requery
DoCmd.GoToControl ctl1.Name
Me.Requery
At present it only updates ctl1.name, although it does appear to 'pass thru' ctl without updating the underlying query.
I have switched the code around, and it appears to be limited to updating only 1 subform - is this correct? I have attempted to call another procedure to see if it made any difference by 'splitting' the requeries - this also was not successful.
Thanks muchly
Dim ctl, ctl1 As Control
Set ctl = Forms!checkprice_design_sales!add_des_prices
Set ctl1 = Forms!checkprice_design_sales!Add_colours_for_the_design
DoCmd.GoToControl ctl.Name
Me.Requery
DoCmd.GoToControl ctl1.Name
Me.Requery
At present it only updates ctl1.name, although it does appear to 'pass thru' ctl without updating the underlying query.
I have switched the code around, and it appears to be limited to updating only 1 subform - is this correct? I have attempted to call another procedure to see if it made any difference by 'splitting' the requeries - this also was not successful.
Thanks muchly