What is your ODBC driver?

Try like this:

  strConn = "Driver={Firebird/InterBase(r) driver};" & _
            "Dbname=c:\Program Files\Fishbowl\database\data\AS SOLAR.FDB;"

  OpenDBConnection strConn, "XXX", "YYY"


RBS


On Wed, May 2, 2012 at 11:20 PM, Maury Markowitz
<[email protected]>wrote:

> **
>
>
> On 2012-05-02, at 5:59 PM, Bart Smissaert wrote:
>
> > Post your code and tell where you get the error.
> > Should be something simple
>
> Yeah, normally is simple. Just wish the error was more descriptive!
>
> Const cnn = "Driver={Firebird/InterBase(r) driver};Dbname=c:\Program
> Files\Fishbowl\database\data\AS SOLAR.FDB;UID=XXX;PWD=YYY;"
> Public conn As ADODB.Connection
>
> Sub OpenDBConnection()
> If conn Is Nothing Then
> Set conn = New ADODB.Connection
> End If
> If conn.State = 0 Then
> conn.Open cnn
> End If
> End Sub
>
> Happens right on the conn.open. I assume it's a problem in the cnn string,
> but what? I tried {}'s around the dbname, no luck.
>
> The connection to the DB works when I use ODBC. I have a DSN pointed to it
> as well, but when I try to use the DSN based cnn it doesn't work and gives
> me two errors :-)
>
> Const cnn = "ODBC;DSN=Fishbowl;UID=XXX;PWD=YYY;"
> 
>


[Non-text portions of this message have been removed]



------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Resources item
on the main (top) menu.  Try Knowledgebase and FAQ links !

Also search the knowledgebases at http://www.ibphoenix.com 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to