Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/08/2004, 04:04
nabina
 
Fecha de Ingreso: junio-2004
Mensajes: 34
Antigüedad: 19 años, 11 meses
Puntos: 0
Pregunta CreateWorkspace con DAO.NET

Defino:
Private m_conexionAbierta As Boolean
Public m_DAOwrk As DAO.Workspace
Public m_DAOdb As DAO.Database

Private Sub AbrirConexion(ByVal sBDname As String)
On Error GoTo AbrirConexion
If Not m_conexionAbierta Then
m_DAOwrk = CreateWorkspace("", "admin", "", dbUseJet)
m_DAOdb = m_DAOwrk.OpenDatabase(sBDname)
m_conexionAbierta = True
End If
Exit Sub
AbrirConexion:
'ERROR
End Sub

Y NO me reconoce el "CreateWorkspace" ¿alguien sabe qué me falta?

nabina