I have about 250+ text boxes on a report that contain DLOOKUP or DSUM which reference the report name. Sample:
=IIf(DLookUp("[DTyp]","[Da
te_t]","[D
ate] = #" & Format(Reports!rptSched45D
ays_v1!Now
1,"dd-mmm-
yy") & "#")='T',"T",IIf(DLookUp("
[DTyp]","[
Date_t]","
[Date] = #" & Format(Reports!rptSched45D
ays_v1!Now
1,"dd-mmm-
yy") & "#")='H',"H",""))
My problem is that when I make a copy of the report and name it "rptSched45Days_v2", is there a way to use VBA (or some other method) to change the referenced report name in the "Control Source" for all 250+ text boxes on the report to match the new report name. I hate to think about doing each "Control Source" one at a time. I've researched this in EE and can't find any other questions of this nature. As always, I appreciate your expert help. Thank you. George
Note: There is no module to do an Edit>Replace, these are text boxes on the report.
Start Free Trial