Re: How to combine values from 2 fields for a report
- From: "John Spencer (MVP)" <spencer4@xxxxxxxxxxx>
- Date: Wed, 15 Jun 2005 17:27:15 -0400
In that case, I would guess that your fields are not DateTime fields, but are
actually text fields.
Can you check and see what type of fields Due and Out (what are the real names
by the way) are?
donnadele wrote:
>
> I get an error that says Data type mismatch in criteria expression when I try
> these.
>
> "John Spencer (MVP)" wrote:
>
> > Here is criteria that should work, although it will be slow.
> >
> > Field: Out
> > Criteria: > CDate(NZ([Due],#12/1/1900#))
> >
> > You could try
> >
> > Field: Out
> > CriteriaLine1: > Due
> >
> >
> > Field: Due
> > CriteriaLine2: Is Null
> >
> > In SQL
> >
> > WHERE Out>Due or Due Is Null
> >
> > donnadele wrote:
> > >
> > > Help please anyone!!! We are getting desperate here. OUr company president
> > > wants this report and we all feel rather like idiots that we can't figure out
> > > how to make this work.
> > >
> > > I have two fields, one is "due" and the next is "out". What we want to do
> > > is have a query that pulls the records from the "out" field that are greater
> > > than the "due" field, plus we want to include all the "out" records that are
> > > null. Can this be done?
> > >
> > > "donnadele" wrote:
> > >
> > > > What I am trying to do is make a report that shows when out dates are later
> > > > than thier due dates plus when the out dates are left blank. I need a query
> > > > that will pull both the dates greater than the due date, and those that are
> > > > null. Does that help?
> > > >
> > > > "John H W" wrote:
> > > >
> > > > > I am not really sure what you need, but as far as the query is concerned, try:
> > > > > WHERE [due date] < #show date# AND [second field] = #12:00:00 AM#
> > > > >
> > > > > Hopy this helps some.
> > > > >
> > > > > John H W
> > > > >
> > > > > "donnadele" wrote:
> > > > >
> > > > > > I am trying to build an expression in a query that will show dates that are
> > > > > > greater than the due date in one field and is null in the second field which
> > > > > > is the out date. We are putting this expression in the criteria of the out
> > > > > > date field. Can anyone help me?
> >
.
- Follow-Ups:
- Re: How to combine values from 2 fields for a report
- From: donnadele
- Re: How to combine values from 2 fields for a report
- From: donnadele
- Re: How to combine values from 2 fields for a report
- From: donnadele
- Re: How to combine values from 2 fields for a report
- References:
- How to combine values from 2 fields for a report
- From: donnadele
- RE: How to combine values from 2 fields for a report
- From: John H W
- RE: How to combine values from 2 fields for a report
- From: donnadele
- RE: How to combine values from 2 fields for a report
- From: donnadele
- Re: How to combine values from 2 fields for a report
- From: John Spencer (MVP)
- Re: How to combine values from 2 fields for a report
- From: donnadele
- How to combine values from 2 fields for a report
- Prev by Date: Re: special query
- Next by Date: I need help with the Round Function in Access. Is it me or Micros
- Previous by thread: Re: How to combine values from 2 fields for a report
- Next by thread: Re: How to combine values from 2 fields for a report
- Index(es):
Relevant Pages
|