dynamic database connection

dynamic database connection

Post by Marce » Sun, 23 Dec 2001 20:39:05



I have a problem with my adodc
i want a connection with a access 2000 database
the connection is dynamic, so i went to the "ADODC properties" page (right
click on the adodc)  of the adodc, but it is only posible to make a
connection with a dynamic database :
i did:

1)
use connection string ->Build
2)
Microsoft Jet 4.0 OLE DB Provider
3)
Select or enter a database name:
"C:\1.mdb" ->this is STATIC
4)
and a couple of selections of tables

i want dynamic, with my "dblocation" function a made (below)

Anybody knows how?
thanks

Marcel Le Clercq
--
The Netherlands

'<form1>
Private Sub Command1_Click()
Module1.get_dblocation 'haal de dblocatie op
Text1.Text = dblocation()

End Sub

'<module1>
Dim getdb As String

Public Function get_dblocation()

getdb = "C:\1.mdb"

End Function

Public Property Get dblocation() As String
dblocation = getdb
End Property

 
 
 

dynamic database connection

Post by ?ystein M?lle » Mon, 24 Dec 2001 04:44:06


Hi Marcel,
I don't know if this will solve your problem but I usely use:

Private m_dblocation As String
Public Property Get dblocation() As Variant
    dblocation = m_dblocation
End Property

Public Property Let dblocation(ByVal vNewValue As Variant)
    m_dblocation = vNewValue
End Property

?ystein


Quote:> I have a problem with my adodc
> i want a connection with a access 2000 database
> the connection is dynamic, so i went to the "ADODC properties" page (right
> click on the adodc)  of the adodc, but it is only posible to make a
> connection with a dynamic database :
> i did:

> 1)
> use connection string ->Build
> 2)
> Microsoft Jet 4.0 OLE DB Provider
> 3)
> Select or enter a database name:
> "C:\1.mdb" ->this is STATIC
> 4)
> and a couple of selections of tables

> i want dynamic, with my "dblocation" function a made (below)

> Anybody knows how?
> thanks

> Marcel Le Clercq
> --
> The Netherlands

> '<form1>
> Private Sub Command1_Click()
> Module1.get_dblocation 'haal de dblocatie op
> Text1.Text = dblocation()

> End Sub

> '<module1>
> Dim getdb As String

> Public Function get_dblocation()

> getdb = "C:\1.mdb"

> End Function

> Public Property Get dblocation() As String
> dblocation = getdb
> End Property


 
 
 

dynamic database connection

Post by Marce » Tue, 25 Dec 2001 02:00:40


Thanks for your help

Marcel


> Hi Marcel,
> I don't know if this will solve your problem but I usely use:

> Private m_dblocation As String
> Public Property Get dblocation() As Variant
>     dblocation = m_dblocation
> End Property

> Public Property Let dblocation(ByVal vNewValue As Variant)
>     m_dblocation = vNewValue
> End Property

> ?ystein



> > I have a problem with my adodc
> > i want a connection with a access 2000 database
> > the connection is dynamic, so i went to the "ADODC properties" page
(right
> > click on the adodc)  of the adodc, but it is only posible to make a
> > connection with a dynamic database :
> > i did:

> > 1)
> > use connection string ->Build
> > 2)
> > Microsoft Jet 4.0 OLE DB Provider
> > 3)
> > Select or enter a database name:
> > "C:\1.mdb" ->this is STATIC
> > 4)
> > and a couple of selections of tables

> > i want dynamic, with my "dblocation" function a made (below)

> > Anybody knows how?
> > thanks

> > Marcel Le Clercq
> > --
> > The Netherlands

> > '<form1>
> > Private Sub Command1_Click()
> > Module1.get_dblocation 'haal de dblocatie op
> > Text1.Text = dblocation()

> > End Sub

> > '<module1>
> > Dim getdb As String

> > Public Function get_dblocation()

> > getdb = "C:\1.mdb"

> > End Function

> > Public Property Get dblocation() As String
> > dblocation = getdb
> > End Property

 
 
 

1. dynamic database connection

I have a problem with my adodc
i want a connection with a access 2000 database
the connection is dynamic, so i went to the "ADODC properties" page (right
click on the adodc)  of the adodc, but it is only posible to make a
connection with a dynamic database :
i did:

1)
use connection string ->Build
2)
Microsoft Jet 4.0 OLE DB Provider
3)
Select or enter a database name:
"C:\1.mdb" ->this is STATIC
4)
and a couple of selections of tables

i want dynamic, with my "dblocation" function a made (below)

Anybody knows how?
thanks

Marcel Le Clercq
--
The Netherlands

'<form1>
Private Sub Command1_Click()
Module1.get_dblocation 'haal de dblocatie op
Text1.Text = dblocation()

End Sub

'<module1>
Dim getdb As String

Public Function get_dblocation()

getdb = "C:\1.mdb"

End Function

Public Property Get dblocation() As String
dblocation = getdb
End Property

2. Filmaker Pro 3.0v6 can't see hosts while running on NT

3. Run Time Error '94, Invalid use of NULL

4. How to migrate database on Online Dynamic Server 7.2 to Online Dynamic Server 7.1

5. SQL Server Implementation

6. Dynamic Connection

7. Desperately seeking an Oracle Developer...

8. multiple, dynamic recordsets/connections

9. Connection spid question (dynamic SQL)

10. Which is better - static versus dynamic connections

11. Dynamic ADO connection string

12. Help Creating a Dynamic ODBC connection