I have a Main form named frmPharmacy upon which is a subform named frmSubAuthorisedSales.
Within this subform is a combo box named cboApprovedSales. At the moment when a Main form record
is moved either backwards or forwards the subform still shows the previous data.
I want to either Refresh or Requery the subform when a record is moved. I presume that I would enter VBA
code on the On Current event on the main form i.e frmPharmacy.
I have tried innumerable cominationf code to Refresh or Requery the data in cboApprovedSales but to no
avail.
Currently the code I have is.Code:Forms!frmPharmacy!frmSubAuthorisedSales.Form.cboApprovedSales.Refresh
However upoon opening the file Access reports that it cannot find the field frmSubAuthorisedSales. I have tried prefacing it
with Forms! or Form! but neither has lved the problem.
Can anybody please assist me in producing the correct VBA code whilst also advising upon whichform and event to place the code.
Finally should one use a Refresh or Requery to correctb this matter. (or is there anoither method I should use?)
Many thanks
Cheyanne