Tim Marshall wrote:
1) what code is being run with any part of this report?
Tim thanks for reply.
I call report from form and I use only this:
stWhere = ""
stDocName = "My_report"
DoCmd.OpenReport stDocName, acPreview, , stWhere
2) what query/SQL is associated with the report?
This is a potential problem because I create dynamic query regarding
parameters on form.
First of all, I run my function queryIsExist(MyQueryName) /true-false.
If exist delete query and after that create new query with same name.
If not exist don't delete, only create new query with same name.
This is a main part of function:
For Each dcm In dcms
If dcm.Name = MyQueryName Then
queryIsExist = True
Exit Function ' Quit function once form has been found.
End If
Next
This query is Record Source of report.
On my environment (WinXP-office 2k, and Win2k-office 2k) report run well.
I hope, I gave some more information.
Regards,
Gox