"DanB" <(E-Mail Removed)> wrote in
news:56f701c376e5$4d465870$(E-Mail Removed):
>
> I have a function (although it could be set up as a sub)
> that reads a table, does quite a bunch of involved stuff,
> then sends out specified fields from selected records to
> the immediate window. Can I have these fields go to an
> access report instead?
Yes, but you'd need to call it from the report; for example in the Open or
the Format events and so on. You don't have to have a recordsource in a
report (just as a form doesn't have to be bound to a recordset either),
although it's the commonest use.
At bottom, you can simply have a blank page and print on it using code like
the one you have: put it in the Format event, for example.
Hope that helps
Tim F
|