Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-23-2015, 12:32 PM
Cosmo Cosmo is offline Need help with Field Codes Windows Vista Need help with Field Codes Office 2007
Competent Performer
Need help with Field Codes
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Need help with Field Codes

I need to create a field which changes based on the location of a bookmark ('CONT' in this example). If the bookmark falls on the next page, it should say 'the following page', otherwise, 'page x'. This is my attempt at doing that here:



If {PageRef CONT} > {Page} + 1 "the following page" "page " {Page}

I'm not very familiar with field codes just yet, and, as a programmer, I was expecting some sort of delimiter to separate each section (i.e. the 'true' value from the 'false' value), but that doesn't seem to be how this works. I have tried adding parentheses to group parts together, but that doesn't seem to work either:

If ({PageRef CONT} > ({Page} + 1)) "the following page" ("page " {Page})

Can anyone help push me in the correct direction, and give me a working example of what I need to do?

Thanks.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Raw Field Codes ptmuldoon Word 3 01-04-2015 02:50 PM
Need help with Field Codes How to hide field codes from others? lucky16 Word VBA 2 10-24-2014 03:52 AM
VBA script to update field codes? Calab Word VBA 1 04-07-2014 09:27 PM
Formula Field using Field Codes hunter2193 Word 3 04-05-2013 04:58 AM
Need help with Field Codes Word Equation field codes mkarthic Word 1 12-02-2011 02:09 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:22 AM.


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