Dennis, I see your point. I'm not a programmer or an experienced
Access user, just did a few if-then-else statements in Lotus1-2-3 then
Excell while an employee. I reviewed what you said and now understand
that I could put [[none]] in desc and it would read as just a date.
Much easier to form the sentence. But, I sincerely appreciate Don's
explanation of how to use the IF statements and learned a lot.
While we talk about these sentences, I have a question. Do many of you
actually use them. I'm working with them as I clean up my 8200+
location table. As I clean up an event, I make sure the sentence reads
correctly. Am I wasting my time doing this?
Thanks again for all the stimulating discussion on this list.
Elsie Scharpf Saar
Genealogy research
American: Parks, Avann, Bulson, Soden, Menkens
German: Wienecke, Storz, Scharpf, Saar, Stelzer
----- Original Message -----
From: "Dennis Kowallek" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: January 31, 2006 8:20 AM
Subject: Re: [LegacyUG] If-then-else statements - solution
On Mon, 30 Jan 2006 21:00:14 -0500, "Elsie Saar" <[EMAIL PROTECTED]>
wrote:
I enter None for people who do not have an occupation in the census.
I
needed a way to generate the sentence
"He was not employed on 6 May 1930." I didn't want to use an
alternate
sentence for everyone, thinking there must be an easier way.
Therefore, following Don's suggestion in the event fields I enter:
eventname = occupation
desc = [[none]]
date = 6 May 1930
The sentence structure for when only the desc and date are filled
becomes
[:IF [Desc] :: [heshe] was employed as [desc] [ondate] :: [heshe] was
not employed [ondate]].[sources][notes]
I don't think you realize that you are NOT exercising the ELSE logic
in
the above sentence when you get "He was not employed on 6 May 1930.".
You are actually getting your sentence from the "If only Date filled"
sentence.
Proof...
I created a new event called Test and entered two event sentences...
If only Desc and Date filled:
[:IF [Desc] :: [heshe] was employed as
[desc] [ondate] :: [heshe] was not employed
ondate]].[sources][notes]
If only Date filled:
here
I then added the following event:
eventname = test
desc = [[none]]
date = 6 May 1930
The resulting sentence read...
Here
So you are wasting your time creating these complicated sentences.
--
Dennis M. Kowallek
[EMAIL PROTECTED]
******************
Legacy User Group guidelines can be found at:
http://www.LegacyFamilyTree.com/Etiquette.asp
To find past messages, please go to our searchable archives at:
http://www.mail-archive.com/legacyusergroup%40mail.millenniacorp.com/
To unsubscribe please visit:
http://www.legacyfamilytree.com/LegacyLists.asp
Legacy User Group guidelines can be found at:
http://www.LegacyFamilyTree.com/Etiquette.asp
To find past messages, please go to our searchable archives at:
http://www.mail-archive.com/legacyusergroup%40mail.millenniacorp.com/
To unsubscribe please visit: http://www.legacyfamilytree.com/LegacyLists.asp