If you are changing database at runtime, it is
important that you specify the table location
after you apply logon information (this is a case
sensitive property). You can either specify the table name
only or the fully qualified table name such as
crTable.location = "databaseName.dbo.tablename"
• Refer to knowledge base article c2010275 if you
wish to change database logon information in the
main and subreport.
• If you are reporting off an Access database, then
specify either the 'ServerName' or 'DatabaseName'
to the 'ConnectionInfo' Object depending on
how you are connecting to Access.
For example, if you are connecting to Access
through ODBC, then set the 'DatabaseName' for the
'ConnectionInfo' object as follows:
With crConnectionInfo
.DatabaseName = "C:\mydatabase\mydata.mdb"
End With
If you are connecting to Access through OLE DB,
then set set the 'ServerName':
With crConnectionInfo
.ServerName = "C:\mydatabase\mydata.mdb"
End With
It is not possible to report of a secured Access
database using a native connection. See knowledge
base article C2010460 for more information.
• If you are using more than one database with
different usernames and passwords, use a loop to
pass in the different values.