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.
LVL 2
MrSlithyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DatabaseMX (Joe Anderson - Microsoft Access MVP)Database Architect / Systems AnalystCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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 Access MVP)Database Architect / Systems AnalystCommented:
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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 Access MVP)Database Architect / Systems AnalystCommented:
:-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.