Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-06-2023, 04:16 PM
Gr1ndstone Gr1ndstone is offline NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Windows 11 NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Office 2021
Novice
NEXTIF inside of Table, if last entry of source is skipped, blank row is created.
 
Join Date: Oct 2023
Posts: 2
Gr1ndstone is on a distinguished road
Question NEXTIF inside of Table, if last entry of source is skipped, blank row is created.

Hello Everyone,



I am developing a word document for invoice creation. This word doc is uploaded to a web-based program called SAGE Intacct.

I have a table that has ITEMID and ITEMGLGROUP that functions similarly to SAGE Intacct.

When I run my attached word document through the program, NEXTIF created a blank row at the end of the table if the last ITEMID entry has a ITEMGLROUP that was skipped using NEXTIF.

If that last value is not skipped, the blank row is not created.

Unfortunately, Macros and/or VBA is not possible due to SAGE Intacct requiring DOCX. SKIPIF also does not seem to work.

I believe that last row is being created due to NEXTIF. I have attached 3 documents, my excel, word, and a screencap of the pdf I see as a result.

If I were to add a NEXTIF when GLGROUP = "", then I see something similar to the below forum post with only the field names displaying: [URL="https://answers.microsoft.com/en-us/msoffice/forum/all/mergefield-nextif-output-of-last-record-displays/db495d17-af9b-4d4e-9ae8-ada40049cd4e"]

XERO is an accounting software similar to Intacct, so hopefully the above link helps give another example of what I am trying to do. TableSort seems to mix my data too much as the lines are in a specific order.
My goal on this project is the following;
Skip GLGROUP 21, 24, and 25, and populate a separate table for them.

This is due to GLGROUP 21 being paper towels, GLGROUP 24 being Plastic silverware, and GLGROUP 25 being paper plates. Ideally group 21 and 25 on the same table, with GLGROUP 1-20, 22, 23, 26-30 on the first table, 24 on the second table, and 25 on the third.

Please let me know if using NEXTIF is a roundabout way of doing something more simple.

Thank you for the help!
-Harry
Attached Images
File Type: png Output example for WEB.png (11.8 KB, 12 views)
Attached Files
File Type: xlsx Item Example for WEB.xlsx (9.5 KB, 3 views)
File Type: docx Table output example for WEB.docx (27.1 KB, 3 views)
Reply With Quote
 

Tags
conditional merge fields, mergefields, microsoft word



Similar Threads
Thread Thread Starter Forum Replies Last Post
NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Best way to associate combobox entry to source custom collection grNadpa Word VBA 1 05-05-2022 12:43 PM
Remove any pivot table fields with a blank entry Ramtrap Excel Programming 0 04-14-2017 07:00 AM
Text inside text boxes create headings inside my table of contents!!! How do I delete the created he carstj Word 3 04-11-2016 12:46 PM
Delegate cannot edit calendar entry that she created lcuevas Outlook 0 03-12-2010 10:35 AM
Blank entries created in calendar for each response MaydayIT Outlook 0 12-28-2006 08:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft