L
laserized
Hi to all,
My question is:
I ve tried to change the RecordSoruce of a report from my form.
I ve Lot of If statements in my form and among those if statements, my
SQL code changes.
Now I want to assign my SQL code to the reports RecordSource, so that
report will be generated by my form.
well While im tryng to do that, VB sends a runtime error message that
saying, You cannot change the recordSource of the report before
openning it or printing it. or something like that.my code looks like
this
Reports_DenemeReport.RecordSource = strSQL
DoCmd.OpenReport "DenemeReport", acViewPreview
How can I do that from my form?
Any helps are appriciated.
Thanx.
metan.
My question is:
I ve tried to change the RecordSoruce of a report from my form.
I ve Lot of If statements in my form and among those if statements, my
SQL code changes.
Now I want to assign my SQL code to the reports RecordSource, so that
report will be generated by my form.
well While im tryng to do that, VB sends a runtime error message that
saying, You cannot change the recordSource of the report before
openning it or printing it. or something like that.my code looks like
this
Reports_DenemeReport.RecordSource = strSQL
DoCmd.OpenReport "DenemeReport", acViewPreview
How can I do that from my form?
Any helps are appriciated.
Thanx.
metan.