Re: Macro Conditional Expressions
- From: Steve Murphy (Kuwait in Army**US) <SteveMurphyKuwaitinArmyUS@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 29 Apr 2005 06:48:07 -0700
I tried "[expired]![Badge]>0" Then got the following error "You may have
specified a control that wasn't on the current object" the it gives the
example to specify the location for example "Forms![expired]![Badge]>0"
However when I type the location "Queries![expired]![Badge]>0" it
automatically changes it to "[Queries]![expired]![Badge]>0" So I am stuck and
at a loss.
Steve
"JohnFol" wrote:
> The criteria should work. Can you post what you have? I would expect
> something like
>
> DCount("*", "Queryname") > 0
>
>
> "Steve Murphy (Kuwait in Army**US)"
> <SteveMurphyKuwaitinArmyUS@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:28000A85-AA07-4804-BAAC-9E14B94B97CD@xxxxxxxxxxxxxxxx
> >I have a query that finds if an employee's qualifications have expired and
> > shows a form and alert at startup with a macro named as autoexec.
> > Unfortunately it shows the message even if there is no expired employees.
> >
> > My question is how do I not run the macro when it does not meet a
> > criteria?
> > I have tried setting a condition but for some reason it doesn't work on a
> > query??
> >
> > Thank you in advance STeve
>
>
>
.
- Follow-Ups:
- Re: Macro Conditional Expressions
- From: Ken Snell [MVP]
- Re: Macro Conditional Expressions
- References:
- Macro Conditional Expressions
- From: Steve Murphy (Kuwait in Army**US)
- Re: Macro Conditional Expressions
- From: JohnFol
- Macro Conditional Expressions
- Prev by Date: Add autonumber field in query
- Next by Date: Re: Query Question
- Previous by thread: Re: Macro Conditional Expressions
- Next by thread: Re: Macro Conditional Expressions
- Index(es):
Relevant Pages
|