Subform auto-sequencing with alpha chars

sophiad9

01-04-2015

Hi, can anyone help with my problem?  I need to generate autosequence in a repeated subform with alpha chars ('a)', 'b)', etc.) instead of numeric.  Thanks in advance!

Accepted Solutions (1)

Accepted Solutions (1)

radzmar

MVP

01-04-2015

Hi,

this is not that difficult.

Assuming you have a repeatable subform names "SF" which contains a text field named "SFindex" then you can use the following script in the indexChange event of "SF".


var aChars = "abcdefghijklmnopqrstuvwxyz".split("");


SFindex.rawValue = this.index < aChars.length ? aChars[this.index] : "n/a";