G
Guest
I'm working in Access 2002 SP3 to develop a report with a subreport. The
tables in the database are linked tables that draw their data from SQL Server
2000. The main report is based on one query, and in code it opens another
query. The subreport opens a 3rd query.
The main report seems to switch randomly between working and not working. At
times it opens and displays correctly, and at other times, it fails with
error message, "Connection failed: ...SQL Server does not exist or access
denied." In some cases it starts or stops working without my having changed
anything. It's unlikely that anyone else is changing any data in this
database.
The child report and the queries that the main report and the subreport are
based on, all work when opened individually, even when the main report is not
working.
If I delete the child report from the main report, the main report works. If
I comment out the main report's code to open its second recordset, both the
main report and the child report display correctly.
Any suggestions what the problem is?
Thanks in advance.
tables in the database are linked tables that draw their data from SQL Server
2000. The main report is based on one query, and in code it opens another
query. The subreport opens a 3rd query.
The main report seems to switch randomly between working and not working. At
times it opens and displays correctly, and at other times, it fails with
error message, "Connection failed: ...SQL Server does not exist or access
denied." In some cases it starts or stops working without my having changed
anything. It's unlikely that anyone else is changing any data in this
database.
The child report and the queries that the main report and the subreport are
based on, all work when opened individually, even when the main report is not
working.
If I delete the child report from the main report, the main report works. If
I comment out the main report's code to open its second recordset, both the
main report and the child report display correctly.
Any suggestions what the problem is?
Thanks in advance.