Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change report reference

Status
Not open for further replies.

Razor1

IS-IT--Management
Nov 21, 2002
81
US
When running several reports I need to change the report name (tmp_BookingsRegional)in order to update the caption.

Here is the code that I need to change:

Reports!tmp_BookingsRegional.Caption = rstReps!Territory &
& "ern Region Daily Bookings for " & WeekdayName(Weekday(Date)) & " , " & Date

Thanks in advance to any help provided.


Razor1
 
in the report open

dim rstReps as recordset
set rstReps= currnetdb.openrecordset "Select ... "

me.caption = rstReps!Territory & "ern Region Daily Bookings for " & WeekdayName(Weekday(Date)) & " , " & Date


 
I have tried your suggestion and get invalid use of ME.

Any other ideas.



Razor1
 
Maybe this ?
Reports!tmp_BookingsRegional.Caption = rstReps!Territory & "ern Region Daily Bookings for " & WeekdayName(Weekday(Date)) & " , " & Date

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top