January 7, 200620 yr I've set up [Prev] and [Next] buttons to move through records in a layout. When the user is at the first record I would like the [Prev] button to turn gray (not disappear) and be non-clickable. Same for the [Next] button when user is at last record. Is this possible? Thx.
January 8, 200620 yr Easy... Previous If (get(RecordNumber) = 1; InactivePrevious; ActivePrevious) Next If (get(RecordNumber) = Get(FoundCount); InactiveNext; ActiveNext) The calculations go into a calculation field called next or previous with result container ... make sure its unstored aswell... the reference made to InactivePrevious etc. are the fields where you store either the image itself (i.e. in a container field)... or the image path in a text field... have fun genx
January 8, 200620 yr that was for the image... for the script to attach to the button you would have something like Next If Get(RecordNumber) = Get(FoundCount) Do whatever when last record Else Do whatever when not last record End If ...etc
January 11, 200620 yr Author Thanks for your help, aflgenx. I *finally* succeeded, but only after a lot of trial and error (and a bit of cursing) as I tried to figure out how to put all the pieces together. This would make a great tutorial for beginners like me with a bit of fleshing out and going step by step. Thanks again.
Create an account or sign in to comment