Hi All,
Here is my code:
Dim appData As New Access.Application
appData.Visible = True
appData.OpenCurrentDatabase "c:\test\test.mdb", False
' Do my thing with the appData automation object.
At the OpenCurrentDatabase line, the target database is opened, and it
runs its AutoExec macro. I don't want that. I just want to load the db
as if I held down the Shift key while loading it.
How to do this using VBA code?
I looked at SetOption but did not find anything useful.
Thanks,
-Tom. 4 3538
On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout
<no*************@cox.net> wrote: Hi All, Here is my code:
Dim appData As New Access.Application appData.Visible = True appData.OpenCurrentDatabase "c:\test\test.mdb", False ' Do my thing with the appData automation object.
At the OpenCurrentDatabase line, the target database is opened, and it runs its AutoExec macro. I don't want that. I just want to load the db as if I held down the Shift key while loading it. How to do this using VBA code? I looked at SetOption but did not find anything useful.
Thanks,
-Tom.
Hi http://www.mvps.org/access/api/api0068.htm
appears to address this issue.
-David
"David Schofield" <d.***************@blueyonder.co.uk> wrote in message
news:41b34333.420658805@localhost... On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Hi All, Here is my code:
Dim appData As New Access.Application appData.Visible = True appData.OpenCurrentDatabase "c:\test\test.mdb", False ' Do my thing with the appData automation object.
At the OpenCurrentDatabase line, the target database is opened, and it runs its AutoExec macro. I don't want that. I just want to load the db as if I held down the Shift key while loading it. How to do this using VBA code? I looked at SetOption but did not find anything useful.
Thanks,
-Tom. Hi
http://www.mvps.org/access/api/api0068.htm appears to address this issue.
There's also a somewhat kludgy approach mentioned in http://support.microsoft.com/?id=210111
--
Doug Steele, Microsoft Access MVP http://I.Am/DougSteele
(no e-mails, please!)
On Dec 04 2004, 02:42 pm, Tom van Stiphout <no*************@cox.net> wrote
in news:ef********************************@4ax.com: Hi All, Here is my code:
Dim appData As New Access.Application appData.Visible = True appData.OpenCurrentDatabase "c:\test\test.mdb", False ' Do my thing with the appData automation object.
At the OpenCurrentDatabase line, the target database is opened, and it runs its AutoExec macro. I don't want that. I just want to load the db as if I held down the Shift key while loading it. How to do this using VBA code? I looked at SetOption but did not find anything useful.
If you can modify the Autoexec macro itself, you can make it look at the
UserControl property of the application instance and exit early if it's
False, which would be the case when the instance is opened via automation.
--
remove a 9 to reply by email
On 5 Dec 2004 11:23:04 -0600, d.***************@blueyonder.co.uk
(David Schofield) wrote:
Thanks. I should have known The Access Web would have the answer.
-Tom. On Sat, 04 Dec 2004 12:42:30 -0700, Tom van Stiphout <no*************@cox.net> wrote:
Hi All, Here is my code:
Dim appData As New Access.Application appData.Visible = True appData.OpenCurrentDatabase "c:\test\test.mdb", False ' Do my thing with the appData automation object.
At the OpenCurrentDatabase line, the target database is opened, and it runs its AutoExec macro. I don't want that. I just want to load the db as if I held down the Shift key while loading it. How to do this using VBA code? I looked at SetOption but did not find anything useful.
Thanks,
-Tom. Hi
http://www.mvps.org/access/api/api0068.htm appears to address this issue. -David This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Glen Able |
last post by:
Just to get my head straight on this...
Firstly, am I right in thinking that right-shifting a signed integer has an
undefined result (i.e. could be implemented as a logical or arithmetic
shift)?...
|
by: maniac |
last post by:
Hey guys, I'm new here, just a simple question.
I'm learning to Program in C, and I was recommended a book called,
"Mastering C Pointers", just asking if any of you have read it,
and if it's...
|
by: Mehta Shailendrakumar |
last post by:
Hello,
Can anyone suggest me operator to perform arithmetic shift in C?
May it be for a perticular compiler.
Thank you in advance.
Regards,
Shailendra
|
by: Tim Frawley |
last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back
navigation on a control that doesn't support this method. Does anyone
have any ideas how to compare e.KeyChar to a ShiftTab?
...
|
by: Csaba Gabor |
last post by:
I'd like to detect the shift key when a button is "clicked" in
Firefox/Mozilla. If the button is clicked with the mouse, no problem.
However, if the onclick event is keyboard originated, then my...
|
by: deepak |
last post by:
If i'm shifting an integer 'n' times where n > sizeof(int), It's giving
the same value as
that of n-sizeof(n). Why is it behaving like this. I studied that the
bit 'll be replaced by '0'.
...
|
by: sytemper |
last post by:
I write a keydown KeyDown event to catch if tab is press or tab+shift
is press.And i already override the IsInputKey method.
But noe i only can get the tab but no shift+tab. When shift+tab is...
|
by: sandhya |
last post by:
Hello Folks,
i hava a problem in coding of circular left shift of 25 bits in my
program...how do i perform it, and how do i use unsigned in VB.
My program (IDEA algorithm implementation in VB) ...
|
by: Amy Smith |
last post by:
Hello there,
I am having a small problem which been challenging me for few days and
need help or advice.
I am trying to calculate the day-shift for employees based on the time
they started and...
|
by: Felix Kater |
last post by:
Hi,
when I use something like
int Shift= 3;
long Value= 1 << Shift;
What is the data type of the const value '1' here? In other terms: What
is the possible maximum of 'Shift' here?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |