473,434 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

replace query message prompts?

Hello,

I've got a "data import form" that is a simple dialog type form. On
the form is an "Import" button with code that runs several action
queries. The queries import data from an Oracle database into various
staging tables, then appends the data to the main tables in the
database. Currently, the user has to click yes on all of the query
prompts (e.g. "are you sure you want to run this type of action
query?" and "are you sure you want to create a new table with the
selected records?", etc.

1. Is there a way to code this so the user doesn't receive all of the
messages prompting for a yes answer. The default will always be yes.

2. Instead of seeing all of the prompts, how would I put just one
message with an hour glass saying, "import process running" Then
another that says, import process complete?

Thank you for your help.
Aug 11 '08 #1
3 1623
WPW07 wrote:
Hello,

I've got a "data import form" that is a simple dialog type form. On
the form is an "Import" button with code that runs several action
queries. The queries import data from an Oracle database into various
staging tables, then appends the data to the main tables in the
database. Currently, the user has to click yes on all of the query
prompts (e.g. "are you sure you want to run this type of action
query?" and "are you sure you want to create a new table with the
selected records?", etc.

1. Is there a way to code this so the user doesn't receive all of the
messages prompting for a yes answer. The default will always be yes.

2. Instead of seeing all of the prompts, how would I put just one
message with an hour glass saying, "import process running" Then
another that says, import process complete?

Thank you for your help.
Docmd.SetWarnings False
docmd.openquery
Docmd.SetWarnings True
Aug 11 '08 #2
On Aug 11, 12:29*pm, Salad <o...@vinegar.comwrote:
WPW07 wrote:
Hello,
I've got a "data import form" that is a simple dialog type form. *On
the form is an "Import" button with code that runs several action
queries. *The queries import data from an Oracle database into various
staging tables, then appends the data to the main tables in the
database. *Currently, the user has to click yes on all of the query
prompts (e.g. "are you sure you want to run this type of action
query?" and "are you sure you want to create a new table with the
selected records?", etc.
1. *Is there a way to code this so the user doesn't receive all of the
messages prompting for a yes answer. *The default will always be yes.
2. *Instead of seeing all of the prompts, how would I put just one
message with an hour glass saying, "import process running" Then
another that says, import process complete?
Thank you for your help.

Docmd.SetWarnings False
docmd.openquery
Docmd.SetWarnings True


Thanks for your reply. If I turn the warnings off, is the default
answer always yes to the warning prompts?

Aug 11 '08 #3
On Mon, 11 Aug 2008 10:02:17 -0700 (PDT), WPW07 wrote:
On Aug 11, 12:29*pm, Salad <o...@vinegar.comwrote:
>WPW07 wrote:
>>Hello,
>>I've got a "data import form" that is a simple dialog type form. *On
the form is an "Import" button with code that runs several action
queries. *The queries import data from an Oracle database into various
staging tables, then appends the data to the main tables in the
database. *Currently, the user has to click yes on all of the query
prompts (e.g. "are you sure you want to run this type of action
query?" and "are you sure you want to create a new table with the
selected records?", etc.
>>1. *Is there a way to code this so the user doesn't receive all of the
messages prompting for a yes answer. *The default will always be yes.
>>2. *Instead of seeing all of the prompts, how would I put just one
message with an hour glass saying, "import process running" Then
another that says, import process complete?
>>Thank you for your help.

Docmd.SetWarnings False
docmd.openquery
Docmd.SetWarnings True

Thanks for your reply. If I turn the warnings off, is the default
answer always yes to the warning prompts?
There are some things you can do for yourself.
If you had taken just a moment to try this you would not have to wait
for an answer.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Aug 11 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: sal cifone | last post by:
Hey, Is there any way to turn off the query parm prompts? I have a report that must be printed for 53 different cities and the vba code loops thru a table and passes the value to a select query....
1
by: SPM2 | last post by:
I have a query that needs to be run , The problem is with the prompts. I've turned of all the prompts in the tools->options->edit/find page but it still asks for deletion confirmation...is there...
5
by: Ryan Hubbard | last post by:
Is it possible to get the recordset from an open query window? So you run the query. The window is open. Can vba retrieve this data?
5
by: lis0122 | last post by:
I'm a database marketing manager for a small non-profit. I created a query that prompts you for a company name and then pulls a list of all of our contacts in the database in that company. Our...
3
by: Bryan | last post by:
I've been looking over this newsgroup, but I can't find an answer to my problem. I see that a few others have posted this issue over the years, but none of them got a response. I'll give it...
9
by: David Horowitz | last post by:
Hi. I have a query named Query1. Let's say it looks like this: Select * from Table1 where Field1= So whenever you run the query, it prompts for "Enter Value". So now, I have Report1, whose...
1
by: tom | last post by:
Is it possible to have a report with prompts/parameters, but without an underlying query? I've seen varying posts related to this, but I'm not seeing a concete answer. As I understand it, to make a...
13
by: forbes | last post by:
Hi, I have a user that used the Query Wizard to create a query in Access. Now she claims that her master table is missing all the data that was excluded from the query. Can you create anything...
1
by: coolami4u | last post by:
I need a program that simulates the search-and-replace operation in a text editor. The program is to have only three function calls in main. The first function prompts the user to type a string of...
1
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.