Hi All,
Here is my code:
Dim appData As New Access.Applicat ion
appData.Visible = True
appData.OpenCur rentDatabase "c:\test\test.m db", False
' Do my thing with the appData automation object.
At the OpenCurrentData base 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 3559
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.Applicat ion appData.Visible = True appData.OpenCur rentDatabase "c:\test\test.m db", False ' Do my thing with the appData automation object.
At the OpenCurrentData base 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.4 20658805@localh ost... 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.Applicat ion appData.Visible = True appData.OpenCur rentDatabase "c:\test\test.m db", False ' Do my thing with the appData automation object.
At the OpenCurrentData base 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.c om: Hi All, Here is my code:
Dim appData As New Access.Applicat ion appData.Visible = True appData.OpenCur rentDatabase "c:\test\test.m db", False ' Do my thing with the appData automation object.
At the OpenCurrentData base 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.c o.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.Applicat ion appData.Visible = True appData.OpenCur rentDatabase "c:\test\test.m db", False ' Do my thing with the appData automation object.
At the OpenCurrentData base 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)?
If so, am I also right in assuming that if I right-shift a signed integer by
an unsigned integer, the signed value will be promoted to unsigned and the
shift will be performed as a logical right 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 worth the $25USD.
I'm just looking for a book on Pointers, because from what I've
read it's one of the toughest topics to understand.
thanks in advanced.
|
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?
Tim
|
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 method is
not working. Same thing for SELECT elements.
The simple web page below shows the issue. Click with the mouse while
holding down the shift key, and the Shift key's status registers.
However, use Shift+Alt+o, or either (while the...
| |
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'.
Example;
int i = 1;
printf ("%d\n", i<<32);
|
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
press, i only get KeyCode=ShiftKey,and KeyData=65552, but nothing to
show that tab is also pressed.
What should i do now?
|
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) requires unsigned
bits...so how do i go thro this ,since VB does not support unsigned
operations
Post your suggestions!!!
|
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 finish working, I will only have 2 shifts 1 or 2 .
Shift one changes based on the location however any thing else is shift
2. The problem I am having is when someone signed in after midnight; I
need to report his time under shift 2 for the...
|
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: 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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |