>>Here it is in LindaLanguage.
>>If Years Worked is Null then enter this "No Anniversaries This Month".
[quoted text clipped - 26 lines]
> Me.lblNone.Visible = True
> End If
I'll have time this weekend I hope to make this work. I looked very quickly
and if I go into the properties of my text box for Name, I don't have an
options in the Event tab. If I R click in the detail section I have 3 event
choices. I am thinking that it would be in the "OnFormat"?
I was looking up Null on the microsoft site and after reading this, I
thought Null was what I was needing.
a.. Use the IIf and IsNull functions to test whether a value is Null, and
then return an appropriate value.
So if I had one field in a query that has records but other fields are
blank, those would be the null records? But since my query is asking for
records that don't exist the fields aren't null, they just don't exist?
Thanks
Linda
Marshall Barton - 29 Sep 2006 19:05 GMT
>>>Here it is in LindaLanguage.
>>>If Years Worked is Null then enter this "No Anniversaries This Month".
[quoted text clipped - 40 lines]
>blank, those would be the null records? But since my query is asking for
>records that don't exist the fields aren't null, they just don't exist?
You are correct on all counts.
I should have been more explicit about putting the code in
the detail section's Format event procedure.
From the tone of your question, I think you may be
unfamiliar with using event procedures so I want to make
clear that the OnFormat property that you see in the detail
section's property sheet needs to contain:
[Event Procedure]
which is available as a choice in the property's drop down
list. After that is done, click on the builder button (with
three dots), which will automatically take you to the Visual
Basic Editor and position the cursor in the event procedure
ready for you to enter/edit the code.
As an aside to your question, you will eventually get into
trouble using reserved words (e.g. Name, Date, Count, etc)
for the names of things you create. Access tries to
minimize the trouble spots, but I think that just makes
things less clear. Because it's difficult to determine
where you can and can not use a reserved word for your own
items, it is a best practice to never use them.
Furthermore, because there is a very long list of reserved
words (and no complete list exists), you should at least
avoid using most common words in English and the language of
your version of Access.

Signature
Marsh
MVP [MS Access]