|
|
Last cheque number
FM10
I have a CHEQUE LOG for US and Cdn cheque books. I want to insert two
boxes in the header of a table layout that will show the last US and
the last Cdn cheque number so that when I create a new record (cheque
record) I know the next number. In my setup US cheques are numbered
US0001 etc. and Cdn, CD0001 etc.. Any suggests or ideas on how to best
do this?
Thanks
Matthew
|
|
0
|
|
|
|
Reply
|
Buckbuck
|
3/23/2011 5:57:49 AM |
|
Buckbuck <buck.matthew74@yahoo.com> wrote:
> FM10
> I have a CHEQUE LOG for US and Cdn cheque books. I want to insert two
> boxes in the header of a table layout that will show the last US and
> the last Cdn cheque number so that when I create a new record (cheque
> record) I know the next number. In my setup US cheques are numbered
> US0001 etc. and Cdn, CD0001 etc.. Any suggests or ideas on how to best
> do this?
What I do here:
create indexable number field or number result calc fields that hold
only the numbers of the ID (0001 instead of CD0001).
Same with a text field or text result calc field for US and CD.
Create a TO of the same table, joining the present records type (US or
CD) with itself (match: all US for a US, all CD for a CD).
Use the max function to determi the highest number of the related
records.
--
http://clk.ch
|
|
0
|
|
|
|
Reply
|
clk
|
3/23/2011 10:34:43 AM
|
|
On Mar 23, 4:34=A0am, c...@tele2.ch (Christoph Kaufmann) wrote:
> Buckbuck <buck.matthe...@yahoo.com> wrote:
> > FM10
> > I have a CHEQUE LOG for US and Cdn cheque books. I want to insert two
> > boxes in the header of a table layout that will show the last US and
> > the last Cdn cheque number so that when I create a new record (cheque
> > record) I know the next number. In my setup US cheques are numbered
> > US0001 etc. and Cdn, CD0001 etc.. Any suggests or ideas on how to best
> > do this?
>
> What I do here:
> create indexable number field or number result calc fields that hold
> only the numbers of the ID (0001 instead of CD0001).
>
> Same with a text field or text result calc field for US and CD.
>
> Create a TO of the same table, joining the present records type (US or
> CD) with itself (match: all US for a US, all CD for a CD).
>
> Use the max function to determi the highest number of the related
> records.
>
> --http://clk.ch
Sorting the relationship by check number and using Last() would be
much faster I believe.
DJ
|
|
0
|
|
|
|
Reply
|
David
|
3/23/2011 9:30:08 PM
|
|
In article
<e4db7077-6b1e-46d9-88ea-1b4cf2845a47@f36g2000pri.googlegroups.com>, David
Jondreau <david@wingforward.net> wrote:
> On Mar 23, 4:34=A0am, c...@tele2.ch (Christoph Kaufmann) wrote:
> > Buckbuck <buck.matthe...@yahoo.com> wrote:
> > > FM10
> > > I have a CHEQUE LOG for US and Cdn cheque books. I want to insert two
> > > boxes in the header of a table layout that will show the last US and
> > > the last Cdn cheque number so that when I create a new record (cheque
> > > record) I know the next number. In my setup US cheques are numbered
> > > US0001 etc. and Cdn, CD0001 etc.. Any suggests or ideas on how to best
> > > do this?
> >
> > What I do here:
> > create indexable number field or number result calc fields that hold
> > only the numbers of the ID (0001 instead of CD0001).
> >
> > Same with a text field or text result calc field for US and CD.
> >
> > Create a TO of the same table, joining the present records type (US or
> > CD) with itself (match: all US for a US, all CD for a CD).
> >
> > Use the max function to determi the highest number of the related
> > records.
>
> Sorting the relationship by check number and using Last() would be
> much faster I believe.
Sort the Relationship in reverse order and then just use the field name
via the Relationship.
i.e.
Relationship::ChequeNumber
FileMaker automatically uses the data in first related record, which in
reverse sort order will be the highest number.
Helpful Harry :o)
|
|
0
|
|
|
|
Reply
|
your
|
3/24/2011 12:28:30 AM
|
|
|
3 Replies
231 Views
(page loaded in 0.08 seconds)
|
|
|
|
|
|
|
|
|