473,699 Members | 2,768 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

me.refresh issue (reprise)

HI again:

I have made 2 posts on this issue, and for some reason still haven't got the right result.

I have a form which contains a number of totals. These totals use unbound control boxes
and are of the form: =Dcount("field" ,"table"). The form contains a number of buttons which
trigger queries (using a macro) that update some tables and delete records from others.
The effect of these macros is to change the counts that should register in the =dcount
fields.

HOWEVER -- when the buttons are pressed, the queries executed and the records moved
around, the totals remain as they were before the buttons were pressed.

I first tried changing from macros to code. The code looks like this:
Private Sub Command1_Click( )
Run ("committimsehe ets")
Me.Refresh

End Sub

This routine ended up with ONLY the form in question active -- all other forms and such
like are closed in the macro. Hence, I would think that the me.Refresh would focus on the
form I am interested in. Still there is NO refreshing!

I have a button (just to test things out) on the form which executes a single line of
code: "me.refresh ", and that works fine, but it doesn't do anything else,

Can someone suggest what I am doing wrong. It apepars that somehow the macro and the
"Me.Refresh " are not working in total harmony.

I apologize for reurning to this group with the same basic problem a number of times, but
somehow the nature of the problem appears to change with each answer I get.

Regards

John Baker
Nov 12 '05 #1
1 4552

Try me.requery.
That will update the recordset, not just the calculations.
Note that this will move the user to the starting record, so you may want to make a note of the current record, and move them back there afterwards.

Regards,

Fraser.

John Baker <Ba******@Veriz on.net> wrote:
HI again:

I have made 2 posts on this issue, and for some reason still haven't got the right result.

I have a form which contains a number of totals. These totals use unbound control boxes
and are of the form: =Dcount("field" ,"table"). The form contains a number of buttons which
trigger queries (using a macro) that update some tables and delete records from others.
The effect of these macros is to change the counts that should register in the =dcount
fields.

HOWEVER -- when the buttons are pressed, the queries executed and the records moved
around, the totals remain as they were before the buttons were pressed.

I first tried changing from macros to code. The code looks like this:
Private Sub Command1_Click( )
Run ("committimsehe ets")
Me.Refresh

End Sub

This routine ended up with ONLY the form in question active -- all other forms and such
like are closed in the macro. Hence, I would think that the me.Refresh would focus on the
form I am interested in. Still there is NO refreshing!

I have a button (just to test things out) on the form which executes a single line of
code: "me.refresh ", and that works fine, but it doesn't do anything else,

Can someone suggest what I am doing wrong. It apepars that somehow the macro and the
"Me.Refresh " are not working in total harmony.

I apologize for reurning to this group with the same basic problem a number of times, but
somehow the nature of the problem appears to change with each answer I get.

Regards

John Baker


Nov 12 '05 #2

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

Similar topics

11
29568
by: Tom Post | last post by:
I am doing a simple php header refresh -- header('refresh: 10; url=msgs.php'); that just does a call back to my script every 10 seconds. Things work great when the page is first loaded up, but if the end user hits F5 or the refresh button, then the page stops refreshing indefinately. Any ideas how to make it so that the page perpetually refreshes regardless of what the end user presses?
11
3756
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
25
7747
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathematical computing and 4 years in unix admin and perl, i have quickly found the official doc: http://python.org/doc/2.4.1/lib/module-gzip.html
5
2492
by: Andrew Chanter | last post by:
I have a situation where I am using an unbound dialog form to update data in an Access 2002 split back end / front end scenario. The data update is done via an ADO call (direct to the back end db) when the user clicks the save button. The dialog then closes and the user should be able to see the result of their edit in a list view that now has focus. This is where I run into a problem. The list view wont refresh to pick up the data...
18
3664
by: Brandon Bray [MSFT] | last post by:
Shortly, the Visual C++ Tools Refresh will be available on the MSDN Visual C++ devcenter. You will need to have installed the Visual Studio 2005 Beta first. <http://msdn.microsoft.com/visualc> I have been talking about this a lot over the last two months. All of the features that are missing in the compiler for Beta 1 are now available in the tools refresh. These refreshes are builds out of live development branch and thus are not...
4
2031
by: John | last post by:
I get the feeling this is a pretty classic problem, but I'm a bit of an uber newber. Apologies! Products page, user enters a quantity and clicks one of my "Add to Cart" buttons, which bubbles up through the datalist and calls a method to AddToCart(cartID,prodID,prodQty). Now, if the user clicks 'refresh', that method is executed again without clicking the button. So if they add 2 apples, refresh, they have 4 apples, refresh, 6 apples,...
9
7763
by: PK9 | last post by:
I'm having an issue with the "Refresh" of an asp.net page. The refresh is actually calling my last onClick event. I thought that asp.net was supposed to be stateless in that it shouldn't remember that I clicked a button before the refresh. Here is what is going on: 1) Page Loads 2) User enters some values, clicks the "Save" button 3) The onClick event handler for the save button saves the data to the database and the page is...
0
1943
by: khurram.shakir | last post by:
I am developing an application, which uses .NET 2.0/WinForms and has a designer for screen layout designing. User has an option to design the layout of screen, and for that we developed our own controls based on UserControl Class. After the designing the layout is saved as an XML, and we have a Loader of XML that renders the layout afterwards. When we load the controls and layout from xml, every thing works fine except we are facing...
10
3149
by: Piotr Nowak | last post by:
Hi, Say i have a server process which listens for some changes in database. When a change occurs i want to refresh my page in browser by notyfinig it. I do not want to refresh my page i.e. every 5 seconds, i just want to refresh it ONLY on server change just like desktop applications do. The problem is that refreshing evry n seconds has to much impact on my web server. The refresh action should be taken only when something
0
8686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8615
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8911
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,...
0
8882
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 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...
0
7748
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, 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...
0
4375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4627
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2345
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.