[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

Max () entry in Module from Access 2003 seems to break in 2010. Is it needed?

In some of my Access 2003 FEs I had the following running in a module that was called up via autoexec

Public Function MaxLock()
DAO.DBEngine.SetOption dbMaxLocksPerFile, 50000
End Function

I don't have the documentation in front of me, but it had to do with getting past the max locked files. There was also a reg entry option that I did not deploy

I got an error the first time I opened it and I cant seem to get it again. I dont know if it's running it.
0
MrSlithy
Asked:
MrSlithy
  • 4
  • 3
  • 2
4 Solutions
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
I've used that occasionally with no issues. And it's also resolved the Max Locks issue for others - usually.

What error did you get ?

mx
0
 
MrSlithyAuthor Commented:
Its funny, I got it once and then stopped the macro and have not seen it since.  it doesn't look like stopping the autoexec killed it or disabled it - - Also got a security warning.  Maybe allowing (is this the same as LOW in Access 2003) is all that was required to allow it to function.  Still working my way around new interface.

I'll reconvert and open a new copy and get the error this time.
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
1) Be sure all of your dbs running in the A2010 environment are in a Trust Center >>Trusted Locations - which you can set via the Access 2010 UI

2) Set Macro Security to LOW - also in the Trust Center.

That is more than likely your issue ...

mx
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
I think Joe has you covered, but for more details on Trusted Locations and setting them up, see this article from MacroShadow:

http://www.experts-exchange.com/Software/Office_Productivity/Office_Suites/MS_Office/A_10805-Overcome-the-Trust-Center-Nuisance.html

He shows several ways to setup your Trusted Locations.
0
 
MrSlithyAuthor Commented:
You guys are really 1-2ing me with good help. Thanks. consider this answered. I just need to test it and might not get back to it for a day or so.  Here's a clarification question:

In access 2010, the warning that comes up in a ribbon is the same as the old security dialogue. But if I recall, that would keep coming up in 2003 unless I went in and set the Macro security to low. But on 2010, I allowed and haven't seen it since. It appears that 2010 accepts the allow as new default - - or am i missing something?
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
As Joe said (and the article I linked to points out): Set the database location as a Trusted Location, and you shouldn't see any sort of security warnings after that.
0
 
MrSlithyAuthor Commented:
Thank you all!!
0
 
MrSlithyAuthor Commented:
MX your accepted was really assisted - - but you know you got it
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
:-)
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now