J
javiernews via AccessMonster.com
Hi,
I need to rename an external DB but I would like to use OpenDatabase metod
but I got an error
Sample:
Dim accAppNew As New Access.Application
Dim dbs As DAO.Database
Set dbs = accAppNew.DBEngine.OpenDatabase("C:\My Doduments\Test.
mdb", True, False)
accAppNew.Visible = False
dbs.DoCmd.Rename "NewForm", acForm, "OldForm" ' <<< Error
Is it possible to rename a Form using OpenDatabase method ?
Thank you !
I need to rename an external DB but I would like to use OpenDatabase metod
but I got an error
Sample:
Dim accAppNew As New Access.Application
Dim dbs As DAO.Database
Set dbs = accAppNew.DBEngine.OpenDatabase("C:\My Doduments\Test.
mdb", True, False)
accAppNew.Visible = False
dbs.DoCmd.Rename "NewForm", acForm, "OldForm" ' <<< Error
Is it possible to rename a Form using OpenDatabase method ?
Thank you !