I'm looking for some help regarding refresh. I have a main form. I open a second form and add records. I want a label on the main to indicate whether I have records in the 2nd form/ table relating to the displayed record or not and change if I remove all the records or add a new record.
I first created a label, I did a dcount expression within this label showing me how many records relate to this record in the first. I did a me.refresh expression on the close property of the 2nd form and this worked.
However if I try to link a label display property to this label (ie display if >0) then it doesn't display using refresh. I even tried removing the intermediary label to see if I count dcount within the code if that would work. requery works but it sends me back to first record on the main form and I don't want that.
Any advice?
I first created a label, I did a dcount expression within this label showing me how many records relate to this record in the first. I did a me.refresh expression on the close property of the 2nd form and this worked.
However if I try to link a label display property to this label (ie display if >0) then it doesn't display using refresh. I even tried removing the intermediary label to see if I count dcount within the code if that would work. requery works but it sends me back to first record on the main form and I don't want that.
Any advice?