Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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, 7 views)
Attached Files
File Type: xlsx Item Example for WEB.xlsx (9.5 KB, 0 views)
File Type: docx Table output example for WEB.docx (27.1 KB, 0 views)
Reply With Quote
  #2  
Old 11-11-2023, 12:06 AM
macropod's Avatar
macropod macropod is offline NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Windows 10 NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Look at the options discussed in the Microsoft Word Catalogue/Directory Mailmerge Tutorial thread at the top of this forum: https://www.msofficeforums.com/mail-...-tutorial.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 11-13-2023, 09:27 AM
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
Default

Hello Paul,

I took a look at the fields and learned more about how the fields work. It seems that {MERGEFIELD TABLESTART:ENTRIES} is a custom mergefield that is not compatible with many of the native fields in MS Word. (VIA Sage Intacct Dev team)

Unfortunately that means I may just have to wait for a new release from the developer side that fixes the bug. Thanks for responding anyways!

P.S. Many of your and Graham Mayor's posts helped me learn the basics of how mergefields work. A big lifesaver on a majority of what I had problems with, so thanks for that!
Reply With Quote
  #4  
Old 11-16-2023, 09:28 PM
macropod's Avatar
macropod macropod is offline NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Windows 10 NEXTIF inside of Table, if last entry of source is skipped, blank row is created. Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

A field like {MERGEFIELD TABLESTART:ENTRIES} tells me you're using a 3rd-party application, such as Conga Salesforce. Accordingly, this isn't a Word issue as such and you have to work within the limitations of that application.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

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 11:17 AM.


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