Thread View: comp.sys.mac.databases
4 messages
4 total messages
Started by Steven Russell
Fri, 14 Aug 1992 09:09
Another FileMaker Pro question
Author: Steven Russell
Date: Fri, 14 Aug 1992 09:09
Date: Fri, 14 Aug 1992 09:09
27 lines
1826 bytes
1826 bytes
charlesa@niwot.scd.ucar.edu (Charles Albrecht) writes: >The function you've probably written is: Today - FromDate > ^^^^^ (Today is a FMPro function) >If you define this as a number, FM Pro will beep at you and give you >a stern warning that the function will return a value of type "date." If >you indicate that you do want to define it as a number, FileMaker will >gladly allow you to do it, and should give you what you're looking for. I'll be darned, you are right. I took the stern warning too seriously, and didn't attempt to use the number result. Charles, thanks for the help! Thanks also to Brian Schipper, who suggested the same solution. Ok, here's another question: I want to be able to create a field that adds values from two other fields. If field "A" contains the value 20, and field "B" contains 17, I want my proposed field to become 37. So far, this is trivial, but I would like this same field to be selectable for manual data entry if both fields "A" and "B" are undefined. If this is not possible, I will settle for having the field be selectable for data entry without depending on the values in fields "A" and "B". Is this possible, or am I asking too much? I've looked through the manual for help with this, but haven't found a way to make it work. -- -Steven Russell srussell@uoneuro.uoregon.edu
Re: Another FileMaker Pro question
Author: Charles Albrecht
Date: Fri, 14 Aug 1992 14:58
Date: Fri, 14 Aug 1992 14:58
39 lines
2146 bytes
2146 bytes
In article <1992Aug14.090939.14131@nntp.uoregon.edu> srussell@cie.uoregon.edu (Steven Russell) writes:
>
>Ok, here's another question: I want to be able to create a field
>that adds values from two other fields. If field "A" contains the
>value 20, and field "B" contains 17, I want my proposed field to
>become 37. So far, this is trivial, but I would like this same field
>to be selectable for manual data entry if both fields "A" and "B" are
>undefined. If this is not possible, I will settle for having the
>field be selectable for data entry without depending on the values in
>fields "A" and "B". Is this possible, or am I asking too much? I've
>looked through the manual for help with this, but haven't found a way
>to make it work.
>
>--
>-Steven Russell
>srussell@uoneuro.uoregon.edu
>
How about this: create a field "C" that has the data you'll put into your
calculation field if "A" and "B" are empty. Then define your CalcField
with:
CalcField = if ((A = "") and (B = ""),C,A+B)
I've done something similar in a database here. I then make C a non-printing
object in the layout definition, so that only the CalcField is printed.
Charles
----
Charles Albrecht "Nonsense, they only say you can't survive
charlesa@ncar.ucar.edu The Fire Swamp because no one ever has."
303/497-1828 - Westley, The Dread Pirate Roberts
NCAR - Scientific Computing Division * P.O. Box 3000 * Boulder, Colorado 80307
The opinions you are about to have read are fictitious...
...any similarity to opinions living or dead is purely coincidental.
Re: Another FileMaker Pro question
Author: Geoff Bronner
Date: Sat, 15 Aug 1992 21:34
Date: Sat, 15 Aug 1992 21:34
24 lines
1798 bytes
1798 bytes
In <1992Aug14.090939.14131@nntp.uoregon.edu> srussell@cie.uoregon.edu (Steven Russell) writes:
>Ok, here's another question: I want to be able to create a field
>that adds values from two other fields. If field "A" contains the
>value 20, and field "B" contains 17, I want my proposed field to
>become 37. So far, this is trivial, but I would like this same field
>to be selectable for manual data entry if both fields "A" and "B" are
>undefined. If this is not possible, I will settle for having the
>field be selectable for data entry without depending on the values in
>fields "A" and "B". Is this possible, or am I asking too much? I've
>looked through the manual for help with this, but haven't found a way
>to make it work.
The only way you could do this would be to define your proposed field as a
calculation field, let the calculation run, and thenb redefine it as a
number field. But you would have to re-run the calculation on an irregular
basis.
-Geoff
--
geoffb@Dartmouth.EDU - Computing Support Consultant, Tuck School of Business
_____________________________________________________________________________
Cerebus for Dictator in 1992!! | He doesn't love you, he just wants
"Vote for me or else." | all of of your money.
Re: Another FileMaker Pro question
Author: Darren J. Wiebe
Date: Sun, 16 Aug 1992 22:15
Date: Sun, 16 Aug 1992 22:15
53 lines
3161 bytes
3161 bytes
In <1992Aug15.213459.13281@dartvax.dartmouth.edu> geoffb@coos.dartmouth.edu (Geoff Bronner) writes:
>In <1992Aug14.090939.14131@nntp.uoregon.edu> srussell@cie.uoregon.edu (Steven Russell) writes:
>>Ok, here's another question: I want to be able to create a field
>>that adds values from two other fields. If field "A" contains the
>>value 20, and field "B" contains 17, I want my proposed field to
>>become 37. So far, this is trivial, but I would like this same field
>>to be selectable for manual data entry if both fields "A" and "B" are
>>undefined. If this is not possible, I will settle for having the
>>field be selectable for data entry without depending on the values in
>>fields "A" and "B". Is this possible, or am I asking too much? I've
>>looked through the manual for help with this, but haven't found a way
>>to make it work.
>The only way you could do this would be to define your proposed field as a
>calculation field, let the calculation run, and thenb redefine it as a
>number field. But you would have to re-run the calculation on an irregular
>basis.
>geoffb@Dartmouth.EDU - Computing Support Consultant, Tuck School of Business
Huh???
Truthfully, the only way to accomplish this is as follows:
Field A & B are numbers
Field W = A + B (Calculation)
Field X = Number field with auto-increment serial number (Start at say 1)
Field Y = Number field with defined values of 0 and 50000 (arbitrary but large)
dfg
:wq
Field Z = X + Y
Field C = Number field which looks up within the same file and copies the
contents of W into C when a new value in Z matches a value in X
In this case if you define Y as radio buttons and size the box so you can't
see the 0 and 50000, you have a little toggle switch to perform the lookup, so
you can type in field C, but whenever you toggle, the value will be replaced
with the actual calculation...
There are a couple ways to make it work a bit easier, but they are more complica
ted in the formula's and require a special procedure when entering data, this is
the most user friendly way...
(<=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=>)
Darren J. Wiebe | Internet: djwiebe@ccu.umanitoba.ca
Box 141, Station L | AppleLink: CDA0010T
Winnipeg, Manitoba, Canada R3H 0Z4 | Quote: 'scuse me,
Disclaimer: Disclaimer! I don't need | while I puke and die!
no stinkin' disclaimer! | -The Dead Milkmen
(<=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=>)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads