Re: Reference If Statement Result
- From: "MacDermott" <macdermott@xxxxxxxxxx>
- Date: Sun, 30 Oct 2005 13:42:49 GMT
Referencing the textbox itself is not a big problem; the bigger issue I see
here is that the second argument of DCount is not the name of a form, but
the name of a table or query. And the table or query, of course, doesn't
contain your unbound textbox.
One way of working around this would be to reuse the criteria in your IIF
statement for the DCount, instead of referencing the unbound textbox:
=DCount("*","MyTable","DatePaid<DateDue")
HTH
<hmiller@xxxxxxxxxxxx> wrote in message
news:1130647531.771920.321290@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I have created and IIF statement in an unbound text box. The IIF
> statement produces a text result, ie "On Time", in the unbound text
> box. What I would like to do is reffence this text box and then the
> result contained in the text box. Something like this:
>
> =Dcount("*","The form where the unbound text box is","TextBox='On
> Time'")
>
> How can I get this work work?
> Is it possible to reference an unbound text box? (I have read this box
> is no longer unbound seeing it has an IIF statement in it)?
> Is it possible to reference the result of an IIF statement?
>
> Any help is greatl appreciated.
>
> PS - Where is the best place to begin learning VBA. Most of the books I
> have read are way over my head.
>
.
- References:
- Reference If Statement Result
- From: hmiller@xxxxxxxxxxxx
- Reference If Statement Result
- Prev by Date: Re: NZ Example from MLH
- Next by Date: Re: Looping variables - Integer vs Long
- Previous by thread: Re: Reference If Statement Result
- Next by thread: Strange report error message - control must have focus
- Index(es):
Relevant Pages
|