vandaliarental
Technical User
Can you execute a function located in another database?
Public Function Daily()
Dim dbExt As DAO.Database
Dim loc As String
Dim Pfunc As String
loc = "C:\MSAccess\inventory\BalanceReplCharges_fe.mdb"
Pfunc = "DailyRpt()"
Set dbExt = OpenDatabase(loc)
dbExt.Execute (Pfunc)
dbExt.Close
End Function
When I run this, I get an error on the dbExt.Execute line saying that Microsoft Jet can't find the query or input table "DailyRpt". What command would you use to run a public function that's located in another database?
Thanks,
Connie
Public Function Daily()
Dim dbExt As DAO.Database
Dim loc As String
Dim Pfunc As String
loc = "C:\MSAccess\inventory\BalanceReplCharges_fe.mdb"
Pfunc = "DailyRpt()"
Set dbExt = OpenDatabase(loc)
dbExt.Execute (Pfunc)
dbExt.Close
End Function
When I run this, I get an error on the dbExt.Execute line saying that Microsoft Jet can't find the query or input table "DailyRpt". What command would you use to run a public function that's located in another database?
Thanks,
Connie