In news:8436056A-E8AE-4208-ACA3-(E-Mail Removed),
Kou Vang <(E-Mail Removed)> wrote:
> I forgot to mention that I am trying to edit txtBoxes that are in a
> report through a form I am running. Can I open a report while
> running the code from the form, and edit the txtboxes of the report
> through the forms code?
I think you'd better put the code to modify controlsources in the Open
event of the report. Even if Access will let you do it after the
report's Open event has finished -- and it may not -- I'm not sure if
there's any other way for you to ensure that the text boxes'
controlsources are set before the report actually starts to print them.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)