473,404 Members | 2,170 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,404 software developers and data experts.

Report will not update when you enter in new data until you close and reopen form?

anoble1
245 128KB
Guys,
I am having an issue where when I enter in data into my form then click on my report button which runs a query it will not show the new total amount on the report until I close the form I was in and go back into it.

I have 3 textboxes that do that on this form. When you edit them it shows the new value on the form but when you open the report it still has the old until you close and reopen the form.

Ideas? Is there a refresh I can do before the report opens?
Oct 12 '17 #1

✓ answered by PhilOfWalton

Don't forget that until you change records on a form, the data isn't saved.

There a few ways to overcome this:
My preferred method is on the button that opens the report, before opening the report add
Expand|Select|Wrap|Line Numbers
  1.      DoCmd.RunCommand acCmdSaveRecord
  2.  

As an alternative, you can use

Expand|Select|Wrap|Line Numbers
  1.      Me.Dirty = False
  2.  
Phil

1 1839
PhilOfWalton
1,430 Expert 1GB
Don't forget that until you change records on a form, the data isn't saved.

There a few ways to overcome this:
My preferred method is on the button that opens the report, before opening the report add
Expand|Select|Wrap|Line Numbers
  1.      DoCmd.RunCommand acCmdSaveRecord
  2.  

As an alternative, you can use

Expand|Select|Wrap|Line Numbers
  1.      Me.Dirty = False
  2.  
Phil
Oct 12 '17 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Peloux | last post by:
Hi, I have written some htc in order to validate data in a form. most of htc are attached on 'onblur' event. Now, we would like to use the Enter Key to sublit form, so we use the following...
1
by: John | last post by:
My data has 10 accounts. Two forms are opened simultaneously. Form1 is unbound and displays three records: Account Quantity 101 17 104 25 107 ...
1
by: Susan | last post by:
I have a bound form and subform and am trying to enter the data in both forms programatically. The Linkmaster and Linkchild properties are set. My intent is to be able to look at the data before it...
0
by: Jerry | last post by:
Below is ALL the code for all the databases... Here's the problem: I callup the aspx file in IE and the form comes up just fine. When I select a person to update, I get the subject error. ...
10
by: morangolds | last post by:
Hi, I've been having a problem with C++ Windows Forms apps not "ending" when you close the form window. I've searched about this problem all over the place and most searches have lead me to...
4
by: Andrew Meador - ASCPA, MCSE, MCP+I, Network+, A+ | last post by:
I have created a report. This report needs to display records between two dates entered by the user. I put two text boxes on the report so I can enter the start and end date - I set them to use an...
4
by: AdamOnAccess | last post by:
I find that I always need to incorporate something like this into my forms, but I've never been happy on how I do it. Can someone advice me on the proper way to do this in Access. Let's say I have...
7
by: Deezel | last post by:
I have a many to many relationship between tblResProjData and tblProperty, with tblCHI as junction table. I thought with the 'Enforce Refrential Integrity', and 'Cascade Update Related Fields'...
7
by: time2hike | last post by:
The Problem: I have a report with one sub-report that give an Enter Parameter Value message on loading. The message appears when we open the report on a different computer than the development...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...
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,...

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.