473,396 Members | 1,865 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,396 software developers and data experts.

Running queries update text box on form

I have some code written and it works fine, except the lines that
update the form text box. I want to update the text box to let the
user know what qry is executing. If I take out the

Docmd.setwarnings line, it updates fine,but the user has to click yes
2 times due to them being make table queries.

Code below:

Me.txtStatus.Value = "Processing: qry66400aIRHebron"

DoCmd.SetWarnings False
DoCmd.OpenQuery "qry66400aIRHebron", acViewNormal,
acReadOnly
DoCmd.SetWarnings True

Me.txtStatus.Value = "Processing: qryAdidas1Receiving"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryAdidas1Receiving", acViewNormal,
acReadOnl
DoCmd.SetWarnings True

I have tried the above, and tried to move the docmd.setwarnings to the
very beinging and end but nothing works... any ideas?

Thanks,

Dave

May 8 '07 #1
1 2624
On 8 May 2007 11:29:29 -0700, Starke <st********@hotmail.comwrote:

Add a:
DoEvents
call after setting txtStatus, so the screen can be repainted.

Other less drastic options include:
* Check out the Repaint method
* Use the Statusbar (see help file on SysCmd) which has repainting
built-in

-Tom.
>I have some code written and it works fine, except the lines that
update the form text box. I want to update the text box to let the
user know what qry is executing. If I take out the

Docmd.setwarnings line, it updates fine,but the user has to click yes
2 times due to them being make table queries.

Code below:

Me.txtStatus.Value = "Processing: qry66400aIRHebron"

DoCmd.SetWarnings False
DoCmd.OpenQuery "qry66400aIRHebron", acViewNormal,
acReadOnly
DoCmd.SetWarnings True

Me.txtStatus.Value = "Processing: qryAdidas1Receiving"
DoCmd.SetWarnings False
DoCmd.OpenQuery "qryAdidas1Receiving", acViewNormal,
acReadOnl
DoCmd.SetWarnings True

I have tried the above, and tried to move the docmd.setwarnings to the
very beinging and end but nothing works... any ideas?

Thanks,

Dave
May 9 '07 #2

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

Similar topics

3
by: Dave Nouwens | last post by:
Hi All, Please accept my appologies in advance for what I expect will be a reasonably simple question. I have an html form (which is generated in php) which contains a number of rows (one row...
0
by: Nick Truscott | last post by:
Is this possible? I have a form which asks the user to input the result of a soccer match. I want to then use a choice of three sets of queries (Home Win, Away Win, Draw) to update two...
0
by: Andy | last post by:
Hello everybody I have a question on running queries via a form. My situation is – a have a query (qrysearch) and this query has a number of fields e.g. (company, employee etc). My form is...
1
by: Aaron | last post by:
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; ...
4
by: deko | last post by:
I'm a little nervous about slamming my database with a dozen Update queries in a loop that all modify RecordSources of open forms. Will the use of DoEvents and/or a Sleep function ameliorate any...
10
by: shumaker | last post by:
I don't need a detailed description of a solution(although I wouldn't mind), but I am hoping someone could tell me in general the best path to go about accomplishing a task, since I don't know all...
2
by: Jim S | last post by:
To my surprise and chagrin, newer versions of Access have disabled the functionality that lets users change the data in linked tables that point to a range in an Excel workbook. This is "because of...
3
by: eholz1 | last post by:
Hello PHP programmers. I had a brilliant idea on one of my pages that selects some data from my mysql database. I first set the page up to display some info and an image, just one item, with a...
3
by: Shiny Star | last post by:
I have 4tables & I write class for all those table to hold a tables information as one whole unit. I am using MS Access queries, just like stored procedures so the queries (select, update, delete,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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,...

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.