ODBCConnection.ConnectTo: Illegal use of parentheses

The Domino help says that ConnectTo takes one parameter plus two optional parameters for the username and password. Yet I get an error saying “Illegal use of parentheses” when I try to save this line:

Dim con As New ODBCConnection

con.ConnectTo(“WIP SQL DB”, “wip”, “resources”)

If I use the same line without the second two parms, it works fine (except I have to manually type in the username and password).

What’s up with that?

Thanks,

-Jeff

Subject: ODBCConnection.ConnectTo: Illegal use of parentheses

usecon.ConnectTo “WIP SQL DB”, “wip”, “resources”

or

CALL con.ConnectTo(“WIP SQL DB”, “wip”, “resources”)

synthax

Subject: RE: ODBCConnection.ConnectTo: Illegal use of parentheses

Doh!