i am using Access97.
On my form, i have a text box with the following control source:
=DLookUp("[rackloc]","tblOPCInfo","[BuildingSite]=Form.[BuildingSite] and [SystemID]=Form.[SystemID] and [OPCNumber]=Form.[OPCNumber]"
that works fine on my form. but, i tried the same thing on my report and had no luck.
on my report, my text boxes's control source is:
=DLookUp("[rackloc]","tblOPCInfo","[BuildingSite]=Forms![frmOPCCNET]![BuildingSite] and [SystemID]=Forms![frmOPCCNET]![SystemID] and [OPCNumber]=Forms![frmOPCCnet]![OPCNumber]"
That only works for the first value in my report. Then, that value is repeated for every line in the report! So every line in the report has the same data.
Does anyone know to get fix this?
thanks,
ruth
On my form, i have a text box with the following control source:
=DLookUp("[rackloc]","tblOPCInfo","[BuildingSite]=Form.[BuildingSite] and [SystemID]=Form.[SystemID] and [OPCNumber]=Form.[OPCNumber]"
that works fine on my form. but, i tried the same thing on my report and had no luck.
on my report, my text boxes's control source is:
=DLookUp("[rackloc]","tblOPCInfo","[BuildingSite]=Forms![frmOPCCNET]![BuildingSite] and [SystemID]=Forms![frmOPCCNET]![SystemID] and [OPCNumber]=Forms![frmOPCCnet]![OPCNumber]"
That only works for the first value in my report. Then, that value is repeated for every line in the report! So every line in the report has the same data.
Does anyone know to get fix this?
thanks,
ruth