How to prevent the form from being opened when opening another access from AccessVBA main access

Asked 2 years ago, Updated 2 years ago, 113 views

Thank you for your help.

In Access 2010, when you open other access in the VBA, you try to open it in the OpenCurrentDatabase
However, if the caller has access to the specified form, the form will be
It will open, but disable the settings so that it opens with the shift key when you normally open it.
I'd like to open it, so please tell me how to do it.

There was an Exclusive argument in the first argument, so I tried False, but I couldn't.

Thank you for your cooperation.

vba ms-access form

2022-09-29 22:15

1 Answers

Hello.

OpenCurrentDatabase does not seem to be able to open with the boot option disabled.
The first argument Exclusive is whether or not it opens exclusively, so it doesn't matter.

It's a bit pushy, but you can do it with the SendInput function.

Reference URL
http://blogwizhook.blog.fc2.com/blog-entry-151.html


2022-09-29 22:15

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.