If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > FileMaker > HELP :-) Repetitions Filed Calculation

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-04, 10:39
Saloomm Saloomm is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
HELP :-) Repetitions Filed Calculation

Good day All,

I have Filemaker Pro V5 and created a database for students. The file has tow fileds with 4 repetitions titled Date In and Date Out. I need to do calculation as following.

Date IN _____________Date Out (MM/DD/YY)
01/01/2004 ___________01/31/2004 **
02/01/2004
03/01/2004
04/01/2004

** First repetition on Date Out is second repetition value form the Date IN file – 1 day and the second repetition on Date Out is third repetition value from the Date IN file – 1 day and so on and the last one I Need to enter manually.

Thanks everyone
Reply With Quote
  #2 (permalink)  
Old 09-01-04, 19:53
Steve T. Steve T. is offline
Registered User
 
Join Date: Sep 2003
Location: So. Cal. USA
Posts: 142
Hi, S!

I'm afraid I don't know repeating field values very well. I believe they were incorporated into FM before it had relational capability, so working with fields with multiple values is somewhat limited.

If you decide to change them to 8 separate fields (4 IN + 4 OUT) or make the system relational, it should be easy. I think FM will let you calculate "the day before" by just subtracting "1" from the previous date...

date1out = date2in - 1

I think if you are going to manually enter date4out, don't make it a calculation field.

I could be wrong about repeating fields, but I haven't seen any examples of anyone doing what you want. Sorry!
--ST

(Edited to fix formula --ST)
Reply With Quote
  #3 (permalink)  
Old 09-04-04, 23:04
Saloomm Saloomm is offline
Registered User
 
Join Date: Aug 2004
Posts: 4
Lightbulb

Thanks ST for respond

I read that the FileMaker Pro V.7 has new calculation that might help doing the repeating filed value. I will download the trial version and post the result.

Saloomm
Reply With Quote
  #4 (permalink)  
Old 09-05-04, 09:48
chriscozi chriscozi is offline
Registered User
 
Join Date: Apr 2004
Posts: 61
Repetitions

I know its easy to create them and use them but REALLY pay attention to the limits in repeating field definitions. This is one example where the data should be individual fields tied to the user so the calculations are easy to create and modify. How do you do a summary on these fields?
How can you build portal options based on a repetition?
There are lots of cons to repeating fields. Make sure you understand that before you use them.
Yes v7 has more options. Will it do what's needed? Not sure . . .
Reply With Quote
  #5 (permalink)  
Old 09-14-04, 22:02
joeking joeking is offline
Registered User
 
Join Date: Feb 2004
Posts: 84
Yes and No

Yes, it is true that repeating feilds were introduced into FileMaker prior to version 3.0. In most cases cases you want to create a portal instead of a repeating field. If you already have a repeating field full of data it is possible to create a script to move the data from a repeating fild into a portal (look at the GetRepetion function).

If you in face only need four rows of data and you never need to work with other databases, then you may want to look at using the Extend function to make you calcualtions work through the different repetitions.

FileMaker has added a few new features to repeating fields, but they are still very limited and should only be used in specifc cases...

Thanks,


Joe
__________________
----


Joe King
FileMaker Developer's Network
joe@fmdevelopersnetwork.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On