W
WCDoan
I've been reading the prior posts to try to find an answer, but failed to do
so. Thought I had it, but turned out I didn't. I have a report that is based
on a select query that asks the user to [Enter Destruction Date:]. This date
field is a text field. The reason being I was told to create a database for
archiving records that have been boxed and labeled. The destruction date was
put on the label in a variety of ways; Jan 2007, 01-01-07, January 1, 2007,
etc. If the user enters a date that has no records, I would like to print 'No
Records for.....whatever they entered' on the report. I thought I could use
an Iff statement as the control source for a text box along the lines of Iff
([OnNoData]), "No Records for [Enter Destruction Date:]", [Visible]=False). I
know the quotes are wrong in the true part, I know there's suppose to be an
ampersand, I just don't know where and how to put them. I thought that if
there were no records the true part would print and if there were records
then it wouldn't. However, I get the 'No records....." whether there are
matching records or not. Unfortunately, I don't use Access enough to get
totally fluent with it being that I work for a small town and have to do many
different things...grant writing, web content, etc and may go months without
using it, which is the case now. So, I come here for help and here I am
again.
Thanks,
RandyM
so. Thought I had it, but turned out I didn't. I have a report that is based
on a select query that asks the user to [Enter Destruction Date:]. This date
field is a text field. The reason being I was told to create a database for
archiving records that have been boxed and labeled. The destruction date was
put on the label in a variety of ways; Jan 2007, 01-01-07, January 1, 2007,
etc. If the user enters a date that has no records, I would like to print 'No
Records for.....whatever they entered' on the report. I thought I could use
an Iff statement as the control source for a text box along the lines of Iff
([OnNoData]), "No Records for [Enter Destruction Date:]", [Visible]=False). I
know the quotes are wrong in the true part, I know there's suppose to be an
ampersand, I just don't know where and how to put them. I thought that if
there were no records the true part would print and if there were records
then it wouldn't. However, I get the 'No records....." whether there are
matching records or not. Unfortunately, I don't use Access enough to get
totally fluent with it being that I work for a small town and have to do many
different things...grant writing, web content, etc and may go months without
using it, which is the case now. So, I come here for help and here I am
again.
Thanks,
RandyM