Enabling and disabling fields in a repeater

Is there a way to enable and disable fields inside a repeater display depending on the values of fields on the master form?I have tried it various ways (on the master form, on the repeater) but I have got the always present “Repeater controls can oly be used with agregation functions.”

Ah yes, the old ‘can’t access individual repeater fields’ issue. I haveaddressed this in a separate answer, under the title Set focus inthis repeater grouping.

You can use a similar method to get the handles of each of the objects in arepeater, probably by using a global array. [This would be ideal for arecordset, but I don’t believe you can store object handles in arecordset.] You would then have to keep track of when the rows in arepeater scrolled. You can do this by turning off the scroll bar for therepeater and adding a scroll bar as a separate object next to the repeaterthat would control the movement through the repeater. Or, you could use upand down push buttons, as described under the title Pushbuttons forrepeater movement in this grouping of questions.

Once you can track changes in the repeater, you can design a function towalk through the individual objects in the repeater and enable or disablethem, depending on the values in the underlying row of the recordset.

I haven’t actually tried to code this all myself, but it makes sensethat it would work.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.