On Apr 15, 11:23=A0pm, Helpful Harry <helpful_ha...@[EMAIL PROTECTED]
>
wrote:
> In article
> <de059ea4-9555-4387-8321-fc588981c...@[EMAIL PROTECTED]
>,
>
> cdhus...@[EMAIL PROTECTED]
wrote:
> > Looking for a FM Pro Counter example that allows the end user to enter
> > a number, and then increment that number by one if new records are
> > added. =A0I am using FM 8.5. =A0Thank you in advance!!
>
> It depends on what you're trying to achieve, but the easiest way is to
> use FileMaker's in-built Auto-Enter Serial Number option.
>
> Create a new field to be the counter:
> ie.
> =A0 =A0 Counter =A0 =A0 Number Field
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Auto-enter Serial Number: Next Value 1
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
=
=A0 =A0 =A0 Increment by 1
>
> If you really want the user to be able to change that number's next
> value, then you can create another new field (a Global field this time)
> for the user to enter their new value into.
> ie.
> =A0 =A0 =A0g_NextCounterValue =A0 =A0Global Field of type Number
>
> Put this field onto a Layout and next to it put a small button that
> runs this one-step Script:
>
> =A0 =A0 Set Next Serial Value [Counter, g_NextCounterValue]
>
> There is of course no checking here to make sure the value isn't
> already used by an existing record, which may or may not be im****tant.
>
> Helpful Harry =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
> Hopefully helping harassed humans happily handle handiwork hard****ps
=A0;o=
)
Harry,
That is exactly what I needed. Thank you!!!!


|