RE: Rowsource of unbound object
- From: Dale Fye <dale.fye@xxxxxxxxxx>
- Date: Tue, 17 Feb 2009 13:09:01 -0800
I'm not sure I understand your response.
Does this mean you tried the Report_Load and Detail_Format events?
I didn't say anthing about the Report_Activiate or Report_Page events.
--
Dale
email address is invalid
Please reply to newsgroup only.
"NevilleT" wrote:
Hi Dale.
Same error using on activate.
If I use the page event I get a message "You can't set the row source
property in print preview or after printing has started."
Same error if I use the on format
"Dale Fye" wrote:
have you tried using the reports Load event?
Another place to try this would be in the reports Detail sections Format
event (assuming that chart object is in the detail section).
--
HTH
Dale
email address is invalid
Please reply to newsgroup only.
"NevilleT" wrote:
This should be very simple but a few hours later ... well you know how it is.
I have a form which has a Gantt chart. I want to produce a printed version
so created a report. The Gantt chart can be sorted by sequence number, start
or finish date. You select the sort order using an option group on the form.
What I want to do is to change the report rowsource when the report opens to
use one of three query sorted in one of three ways - sequence, start or end.
I can do it manually and it works. I enter a different query as the
rowsource of the unbound object and it displays just as it should. When I
try to do it using code it fails telling me
"You entered an expression that has an invalid reference to the property
rowsource."
The code is:
Private Sub Report_Open(Cancel As Integer)
Select Case Forms!frmGanttChart.opgSortBy
Case Is = 1
Me.oleGraph.RowSource = "qryGanttGraphSeqOrder"
Case Is = 2
Me.oleGraph.RowSource = "qryGanttGraphStartOrder"
Case Is = 3
Me.oleGraph.RowSource = "qryGanttGraphFinishOrder"
End Select
End Sub
- Follow-Ups:
- RE: Rowsource of unbound object
- From: NevilleT
- RE: Rowsource of unbound object
- References:
- Rowsource of unbound object
- From: NevilleT
- RE: Rowsource of unbound object
- From: Dale Fye
- RE: Rowsource of unbound object
- From: NevilleT
- Rowsource of unbound object
- Prev by Date: RE: Rowsource of unbound object
- Next by Date: RE: Cannot refer to autonum field in new record
- Previous by thread: RE: Rowsource of unbound object
- Next by thread: RE: Rowsource of unbound object
- Index(es):
Relevant Pages
|