dbTalk Databases Forums  

Last cheque number

comp.databases.filemaker comp.databases.filemaker


Discuss Last cheque number in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Buckbuck
 
Posts: n/a

Default Last cheque number - 03-22-2011 , 11:57 PM






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

Reply With Quote
  #2  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Last cheque number - 03-23-2011 , 04:34 AM






Buckbuck <buck.matthew74 (AT) yahoo (DOT) com> wrote:

Quote:
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

Reply With Quote
  #3  
Old   
David Jondreau
 
Posts: n/a

Default Re: Last cheque number - 03-23-2011 , 03:30 PM



On Mar 23, 4:34*am, c... (AT) tele2 (DOT) ch (Christoph Kaufmann) wrote:
Quote:
Buckbuck <buck.matthe... (AT) yahoo (DOT) 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

Reply With Quote
  #4  
Old   
Your Name
 
Posts: n/a

Default Re: Last cheque number - 03-23-2011 , 07:19 PM



In article
<e4db7077-6b1e-46d9-88ea-1b4cf2845a47 (AT) f36g2000pri (DOT) googlegroups.com>, David
Jondreau <david (AT) wingforward (DOT) net> wrote:

Quote:
On Mar 23, 4:34=A0am, c... (AT) tele2 (DOT) ch (Christoph Kaufmann) wrote:
Buckbuck <buck.matthe... (AT) yahoo (DOT) 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 )

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.