Deborah,

First create a cartesian (all records) relationship between the table and itself - let's call the original table occurrence TO1 and the new one TO2

then create 2 calculation fields, evaluated in the context of TO1:

Numeric_Accession_Number = GetAsNumber ( Accession_Number ) [Numeric result]

Max_Accession = Max ( TO2::Numeric_Accession_Number ) [result probably numeric but could be text]

the latter should give what you need.

OR you could dispense with Max_Accession and use the following calculation in the auto-enter option for Accession_Number:

Max ( TO2::Numeric_Accession_Number ) + 1

making sure that "Prohibit modification of value during data entry" is NOT checked, so that you can manually override during legacy data entry

NB: Although GetAsnumber () basically strips out non-numeric characters, it also "interprets" some of these; eg GetAsNumber ( "abc-43" )returns -43 and GetAsnumber ( "3E4" ) returns 30000. If this could be a problem use:

Numeric_Accession_Number = Filter ( Accession_Number ; "0123456789" ) [Numeric result]

cheers

Tom


On 29 Mar 2007, at 00:05, Deborah Tinsley wrote:

Again, using FMP 8.5 and Mac OSX:

Another one of my conundrums, and probably an unnecessarily long
explanation. My apologies in advance.

I am creating orders for 35mm slides (I run a slide collection). Each order
has several "Sources" from which we take images.

i.e. Order #123456 is comprised from 3 different sources. We buy images from different vendors, shoot copy work from multiple books, receive gifts from
donors, etc.  Each image is cataloged and given a sequential accession
number (we are well into the 100,000's) that is put on the 35mm slide and
used for circulation and inventory.

I'm working with what we in the biz call "legacy" data and not all the
accession numbers are numerical. Some have letters attached for different reasons. For the last 7-8 years, the numbers are all numerical. There mixed
data in this field.


I am entering new images and at the same time we are entering data from slides from the old pre-database collection - they have the lesser numbers
and mixed data numbers (theoretically at least starting with 1).

When I begin a new order, I assign sequential accession numbers beginning where I left off with the last new order. But as time passes, I may spend
time entering slides from the older collection.

Ack, it's not as complicated as I'm making it sound, but how to keep track of the last, highest number used or more to the point, how would someone else who had no idea where I'd left off find it? Because it's a text field
and not a numeric field, the sort doesn't really work correctly.

In my old database I solved this in a rather clunky way with another file called the Accession file where I'd enter the beginning and ending number. The down side was if my assistant or a student failed to record the new order and numbers in this file - and that happened a few times. Big drag!

If you managed managed to read through this novella, besides getting the FMP award for patience, I'd love to hear some ideas about how I might handle
this. Maybe it's something simple?

Deb


Deborah Tinsley
Assoc. Librarian of Visual Resources
Kansas City Art Institute
[EMAIL PROTECTED]
816 802 3395

Reply via email to