js22 Posted November 10, 2006 Posted November 10, 2006 Hello, I have a question about formatting a text box. I am building a database for the chemistry lab that I work in. We want to keep track of our chemical inventory. I have a field in my database for entering in the chemical formula. I would like to format the field so that whenever a number is typed into the field it is always a subscript. I don't want any letters to be subscripts, just numbers. I'm not sure if this is possible but if anyone has an idea it would help me out a lot. thanks js22
Fitch Posted November 10, 2006 Posted November 10, 2006 Substitute(yourField; ["1" ; TextStyleAdd("1"; Subscript)]; ["2" ; TextStyleAdd("2"; Subscript)]; ["3" ; TextStyleAdd("3"; Subscript)]; etc. ) I imagine you'll want this to be an auto-entry field that replaces existing data. Keep in mind that this does not alter the underlying data, only the way it's displayed. If you export the field it will be unformatted.
Recommended Posts
This topic is 6650 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now