Hi,
Is there any way to refresh DLookup function in my subform ?
I have a main form(frmQchart) with a sub-form(sfrmSIsummary) with datasheet format and I'm using DLookup to bring up few fields (fob1,fob2,,,) from tblFOB.
Once I brought up the fields from sfrmSIsummary and change the data in fob1 & 2 later from tblFOB, they don't refresh the fields at all but main form refreshes my sub-form whenever I press the refresh button.
I want them refresh the DLookup fields automatically.
Following is one of my DLookup.
Any help will be appreciated.
Is there any way to refresh DLookup function in my subform ?
I have a main form(frmQchart) with a sub-form(sfrmSIsummary) with datasheet format and I'm using DLookup to bring up few fields (fob1,fob2,,,) from tblFOB.
Once I brought up the fields from sfrmSIsummary and change the data in fob1 & 2 later from tblFOB, they don't refresh the fields at all but main form refreshes my sub-form whenever I press the refresh button.
I want them refresh the DLookup fields automatically.
Following is one of my DLookup.
Code:
Me![fob1] = DLookup("fob1", "tblFOB", "[ShopPN]='" & Me![ShopPN] & "'")