Hi all, Still trying to connect to a access dbase,I might be getting closer, If possable let me know if I am even doing this right and why it is hanging on.((.OpenCurrentDatabase strDB))
(I put the below under General)
Sub OpenAccessDB()
Dim oApp As New Access.Application
Dim strDB As String
Dim stFormName As String
(And this on my Cmd button)
Private Sub CommandButton1_Click()
strDB = "C:UnitPriceDbaseLaborDbase.mbd"
stFormName = "Cs Material"
With oApp
.OpenCurrentDatabase strDB
.DoCmd.OpenForm stFormName
.Visible = True
.UserControl = True
End With
End Sub
(I put the below under General)
Sub OpenAccessDB()
Dim oApp As New Access.Application
Dim strDB As String
Dim stFormName As String
(And this on my Cmd button)
Private Sub CommandButton1_Click()
strDB = "C:UnitPriceDbaseLaborDbase.mbd"
stFormName = "Cs Material"
With oApp
.OpenCurrentDatabase strDB
.DoCmd.OpenForm stFormName
.Visible = True
.UserControl = True
End With
End Sub