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. 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"); 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. 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"); Link to comment Share on other sites More sharing options...
MBee Posted October 4, 2012 Author Share Posted October 4, 2012 Thank You!!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.