Jump to content

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

Recommended Posts

Posted

How would i go about having a field automatically populate itself with a unique id # ONLY when 2 other fields actually contain data. Any way of doing this by a calculation or am i looking at writing scripts.

Any help is much appreciated.

....Haps93

Posted

Auto-enter, by calculation,

Case (not IsEmpty(field1) and not IsEmpty(field2), serial ID field, "")

Serial ID is a separate auto-entered serial number field.

Posted

Fenton's meth wil work but will skip numbers when the fields are populated (if thats a problem,

Try auto entering

Case (not IsEmpty(field1) and not IsEmpty(field2), max(UniqueIDField)+1 , "")

That way all id's will be sequential if needed.

If the ID' is justed used as a key then Fenton's methode will be faster.

Charles

This topic is 7741 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.