For some reason now, when I backup or create an .mde, Access is not using Default database folder
that I have set in Access Options.
It's using the users Desktop folder instead.
Any Ideas?
James
Dim appAccess As New Access.Application
.. other code
' Create Accde File
Set appAccess = Nothing
Set appAccess = CreateObject("Access.Application")
appAccess.AutomationSecurity = MsoAutomationSecurity.msoAutomationSecurityLow
appAccess.UserControl = True
appAccess.SysCmd 603, CStr(mstrLivePath), CStr(mstrDEPath) ' ACCDB path and Target ACCDE path.
appAccess.Quit
Set appAccess = Nothing
Asked by the same user...This was seen before relatively recently - no solution as far as I can tell
Asked by the same user...
Albert Einstein [is incorrectly supposed to have] said:"The definition of insanity is doing the same thing over and over again and expecting different results."
My question is, once you browse to the folder, do you need to do so a second time? In other words, is it remembering the previous place to which you performed a save operation?
I do need do browse to the folder again.My question is, once you browse to the folder, do you need to do so a second time? In other words, is it remembering the previous place to which you performed a save operation?
The thing is Access has always honored the value I put in 'Default database folder.I've never seen this as a real problem - a little navigation is only a couple of seconds in a manual process .
Must admit, however, I seldom ever build an .accde from the SaveAs dialog. My .accde files are built from my Releases database in code, where you can guarantee where you are saving to.
Code:Dim appAccess As New Access.Application .. other code ' Create Accde File Set appAccess = Nothing Set appAccess = CreateObject("Access.Application") appAccess.AutomationSecurity = MsoAutomationSecurity.msoAutomationSecurityLow appAccess.UserControl = True appAccess.SysCmd 603, CStr(mstrLivePath), CStr(mstrDEPath) ' ACCDB path and Target ACCDE path. appAccess.Quit Set appAccess = Nothing
Only Gotcha (well documented but not explained) here is the .accdb path and .accde paths only seem to work if explicitly used with CStr()
Definitely see your point!The thing is Access has always honored the value I put in 'Default database folder.
This is for everything I do. Whether it be saving as accde, open database, or backup a databse.