Grygonos has asked for the wisdom of the Perl Monks concerning the following question:
sub printReport { my ($location) = @_; my $path = "XXX"; #get new object my $access = Win32::OLE->new('Access.Application') or die "$!"; #open the database $access->OpenCurrentDatabase($path); #change the record source to the new table $access->{Reports}->Item(1)->{RecordSource} = $location; #Print the report $access->DoCmd->OpenReport("XXX"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Changing a MS-Access report's RecordSource property
by VSarkiss (Monsignor) on Jun 24, 2003 at 15:24 UTC | |
|
Re: Changing a MS-Access report's RecordSource property
by Tomte (Priest) on Jun 24, 2003 at 15:25 UTC | |
by Grygonos (Chaplain) on Jun 24, 2003 at 15:48 UTC | |
by Tomte (Priest) on Jun 24, 2003 at 16:31 UTC | |
|
Re: Changing a MS-Access report's RecordSource property
by yosefm (Friar) on Jun 24, 2003 at 16:23 UTC | |
|
Re: Changing a MS-Access report's RecordSource property
by MZSanford (Curate) on Jun 24, 2003 at 19:32 UTC | |
by Grygonos (Chaplain) on Jun 24, 2003 at 19:58 UTC | |
|
Re: Changing a MS-Access report's RecordSource property
by jsprat (Curate) on Jun 24, 2003 at 19:59 UTC |