MBee Posted October 4, 2012 Share Posted October 4, 2012 I need a code that will hide a box when another box is full. My file is set up so the there is a graphic image box (BioImageCopy) positioned over a text box (BioTextCopy). Each contains a field appropriate to what it contains "BioImage" for the graphic and "BioCopy" for the text. There is always a graphic in the field "BioImage", so presently it is always seen. When "BioCopy" text field has something in it, "BioImage" will not be seen or print. Thanks for you help. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 4, 2012 Share Posted October 4, 2012 In OnRecordStart: FindGraphicFrame("BioImageCopy").suppress = !Field("BioCopy"); Quote Link to comment Share on other sites More sharing options...
MBee Posted October 4, 2012 Author Share Posted October 4, 2012 The code is hiding the image when the text is empty and showing the image when the text is full. Did I goof it up when I put it into the document? I need it to hide the image when the text field is full. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted October 4, 2012 Share Posted October 4, 2012 The code is hiding the image when the text is empty and showing the image when the text is full. Did I goof it up when I put it into the document? I need it to hide the image when the text field is full. Ah, sorry, I mixed up my Boolean logic. This should work: FindGraphicFrame("BioImageCopy").suppress = !!Field("BioCopy"); Quote Link to comment Share on other sites More sharing options...
MBee Posted October 4, 2012 Author Share Posted October 4, 2012 Thank You!!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.