G
Guest
Hi. I am trying to use either of the following functions in my FE to open a
connection to my BE to delete a table. If I step thru my application crashes
or if i run it I get a error mesage like "function not working properly,
would you like to repair it ". Is my ADO bad?
Dim objAcc As Application
Set objAcc = CreateObject("access.application")
objAcc.OpenCurrentDatabase ("L:\GROUPS\Funds\NonPropBE.MDB")
objAcc.DoCmd.DeleteObject acTable, "tblAIMBackup"
objAcc.CloseCurrentDatabase
OR
Dim objAcc As New Access.Application
With objAcc
.OpenCurrentDatabase "L:\GROUPS\Funds\NonPropBE.MDB"
.DoCmd.DeleteObject acTable, "tblAIMBackup"
.CloseCurrentDatabase
End With
connection to my BE to delete a table. If I step thru my application crashes
or if i run it I get a error mesage like "function not working properly,
would you like to repair it ". Is my ADO bad?
Dim objAcc As Application
Set objAcc = CreateObject("access.application")
objAcc.OpenCurrentDatabase ("L:\GROUPS\Funds\NonPropBE.MDB")
objAcc.DoCmd.DeleteObject acTable, "tblAIMBackup"
objAcc.CloseCurrentDatabase
OR
Dim objAcc As New Access.Application
With objAcc
.OpenCurrentDatabase "L:\GROUPS\Funds\NonPropBE.MDB"
.DoCmd.DeleteObject acTable, "tblAIMBackup"
.CloseCurrentDatabase
End With