-
WSstevecox4444
AskWoody LoungerDoes the sum get calculated in the footer of the subform?
I just did a test and found that it worked if I put the NZ function in the subform sum.
=NZ(Sum([Amount]),0)
John,
Long time – hope things are going well.
I have the same issue but am trying to sum on a form created from a Cross Tab Query. I tried your nz process but did’nt seem to work . Is this because its a cross tab as the source
Steve (ex Anna Bay) -
WSstevecox4444
AskWoody LoungerReports have an “HAS DATA” property, which is true or false.
So you should be able test that with an If statement, and either use total from the report, or 0 if the report does not have data.
Sorry – senior moment.
These are in a Form not a Report -
WSstevecox4444
AskWoody LoungerHans/John
Thanks again. I assumed MAX would come into it somewhere but wasnt sure how- Much appreciatedJohn, I am sure I can get this to work with Quick Books but surprisingly the structure is very different – not quite flat but very non-normalised. However still workable
Steve -
WSstevecox4444
AskWoody LoungerThanks again both of you for your help and interest- I’ll give it a shot
Steve
PS believe it or not John, its not MYOB for a change but ODBC from Quick Books -
WSstevecox4444
AskWoody LoungerRecords the full date
-
WSstevecox4444
AskWoody LoungerHans, Thank you for your help
John (who, by the way Hans, actually has a lot of experience with this particular accounting package) thank you for thinking more laterally than me. After a bit of pain, your suggestion worked like a charm.
Thanks again
Steve. -
WSstevecox4444
AskWoody LoungerSorry John – had replied to Hans before I saw your note.
Yes it is MYOB . The go backwards method may work – let me test it. Thanks
Steve -
WSstevecox4444
AskWoody LoungerThanks for the suggestions.
Sorry Hans, I thought I had explained it properly but I was probably overdoing the detail. I attach a spreadsheet showing some examples.Basically I need to start with a valid opening Balance and I then add and subtract sales, purchases and adjustments or location movements for the set period to come up with a current closing balance for ALL items
In my example spreadsheet:
Item ID 520 has a quantity of 11 in year 2007 because I have not run the year end and there have been no transactions for this item in 2008
Item ID 652 has a quantity of 3 in year 2007 and a quantity of 2 in year 2008 because there have been transactions for this item in 2008.I had sorted the year to use process you described but now need help on the following:
If I am doing the stocktake for a period starting in the 2007 year, everything is fine. All items have a 2007 table entry as I have run the 2006 year end or they have been added since then or had transactions since.
However if I am running a stocktake for a period in starting in 2008, I need to use the 2008 balance for item 652 but the 2007 balance for item 520 as there is no 2008 balance yet.
Steve
Hope this is clearer -
WSstevecox4444
AskWoody LoungerI am getting “Must use updatable query” – what am I doing wrong.
I have created an Update Query
I have the query which finds the unmatched items and the Table I am trying to update linked and am only including the rows where the joined fields match so only the unmatched (ie no longer manufactured items) are selected – this is working fine
I have one destination field, the Inactive field in the Table which I have set to Update to 0 (or No or False – tried them all. That field type is Yes/No Field.
I am lost
Steve -
WSstevecox4444
AskWoody LoungerHans,
Like most databases I deal with, I have no control over the original data. This is a particularly bad one where the manufacturer has basically lost control of their numbering system eg they allowed 2 digits in their product code for material but now have over 100 materials.
Using a combination of fields, I can get unique identifiers for the products and thats going OK.
My problem is that I want to use a query to update the status of one field to make it “No” (or 0 , -1 I can never rmember which one means No!!) For example there were 1200 different products at one stage, and these are now down to about 1,000. I have identified which ones are no longer produced and I want to use this query to set a field in the main table to inactive. Felt like an update query but I couldnt get there.
Steve
Yes the Word thing did help, thank you – I did have to recreate the Normal.dot as well but that was no problem
Thanks again -
WSstevecox4444
AskWoody LoungerThanks again – I’ve been experimenting with the linking in Excel and its looking pretty good
Steve -
WSstevecox4444
AskWoody LoungerThank you both very much for your help.
As suggested, I have attached a cut down version of the database. The Pivot Table is very close to what I want except for the Total Column after each round (and I even (accidentally !!) got sub totalling working). My perfect world would be to also get this to excel in exactly the same format but I’ll keep working on that.
Re the process to remove the totals – where would I have this activated eg OnReport
Thanks again
Steve -
WSstevecox4444
AskWoody LoungerThanks John
ps did you get the moolah -
WSstevecox4444
AskWoody LoungerHans – thanks yet again
Exactly where should this go – Tried the on Open on main form but got End Sub error, Tried on No data in sub form and its in a loop
Steve -
WSstevecox4444
AskWoody LoungerMay 29, 2007 at 10:50 pm in reply to: Combo Box as parameters for a query (2003 All Updates) #1066566Hans
Thank you – the query is now working well. I had to change the source from the Table STKB to a query as there are calculated fields required in the report and I noticed that it would only read the first 4 letters of the query name (presumably because the original table source was 4 letters long). I just changed the name of the query to be 4 letters long
However, because of my inexperience, I have had to make production of the associated report a 2 step process (2 buttons on the form)
Button 1 calls up the query after selections are made
Button 2 opens the report based on this query
It works but its not pretty. Is there anyway to open the report in preview mode as soon as the groups are selected and the “run query” button clicked
Steve
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Upgrade from Windows 10 to 11
by
Holdsworth8
1 hour, 47 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
4 hours, 37 minutes ago -
0patch
by
WSjcgc50
1 hour, 6 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
1 hour, 44 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
7 hours, 37 minutes ago -
Problem opening image attachments
by
RobertG
9 hours, 11 minutes ago -
advice for setting up a new windows computer
by
routtco1001
23 hours, 57 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
4 hours, 13 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 4 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 4 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 5 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 2 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 9 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 9 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
7 hours, 4 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
1 hour, 38 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
7 hours, 45 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
8 hours, 57 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 4 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 14 hours ago -
23 and you
by
Max Stul Oppenheimer
1 day, 21 hours ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 30 minutes ago -
Windows 11 Windows Updater question
by
Tex265
1 hour, 51 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 6 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 10 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 17 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 2 hours ago -
Align objects on a OneNote page
by
CWBillow
3 days, 16 hours ago -
OneNote Send To button?
by
CWBillow
3 days, 17 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.