Jump to content

Nesting Unique field autofill values within if () and case()


This topic is 1553 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi guys, 

Im trying to autofill a field depending on the value of other fields -- Ideally this field would be autofilled with some text immediately followed by a numeric value that increases by 1 for each new record. I currently have this:

If ( Case1 = "A" ; (Case(Type = "Protein" ; "test1xxx"; Type = "Antibody"; "test2xxx"; Type = "DNA"; "test3xxx")))

I would like to replace the "xxx" components with "000" through "999". I was hoping someone would have some insight on this. Any help would be appreciated. 

Thank you! 

Link to comment
Share on other sites

Create a field and set it to be an auto-entered serial number. Then each part of your calc would like like:

"test1" & theField

Or, like this:

If ( Case1 = "A" ; Case( Type = "Protein" ; "test1"; Type = "Antibody"; "test2"; Type = "DNA"; "test3") & theField )

... but that may not be a good fit if there can be other test types.

Link to comment
Share on other sites

This topic is 1553 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.