Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SetLogonInfo

Status
Not open for further replies.

zwieback89

Programmer
Mar 8, 2001
42
US
Hi,

The setLogonInfo method takes in the DSN name, the database name, userid and password. For instance,

crtable.SetLogonInfo "Pubs Sample Database", "pubs", cstr(userid), cstr(password)

When I develop a report based on the titles table of the pubs database, I choose the ODBC pointing to the Pubs Sample Database and Pubs database. I then strip off the pubs.dbo

Now when I mention a different value in the setlongoninfo method - say

crtable.SetLogonInfo "Pub Test", "Pubs_Duplicate", cstr(userid), cstr(password)

I cannot view any information in the report because it originally points to the ODBC - "Pubs Sample Database".

So how can strip off the ODBC name from the report as well other than the pubs.dbo ? Though the databases are different, the tables, its fields and the views are the same.

Hope to hear a solution for this.
Padmaja.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top