limit display of data on continuous form by date

A

Anne

I am drawing a complete blank. I want to be able to limit the display of data
on a continuous form which is used for data entry by date.

I want to be able to display data by start date and end date, or start date
and no end date, just like one would for a report.
 
J

John W. Vinson

I am drawing a complete blank. I want to be able to limit the display of data
on a continuous form which is used for data entry by date.

I want to be able to display data by start date and end date, or start date
and no end date, just like one would for a report.

Base the form on a Query with appropriate date criteria, e.g.

BETWEEN [forms].[yourformname].[txtStartDate] AND
[forms].[yourformname].[txtEndDate]

Be sure the textboxes are unbound (nothing in their Control Source).
 
A

Anne

Thank you. I got this to work.

What I also need is to be able to have a start date and no end date and to
be able to clear the dates and show all.

John W. Vinson said:
I am drawing a complete blank. I want to be able to limit the display of data
on a continuous form which is used for data entry by date.

I want to be able to display data by start date and end date, or start date
and no end date, just like one would for a report.

Base the form on a Query with appropriate date criteria, e.g.

BETWEEN [forms].[yourformname].[txtStartDate] AND
[forms].[yourformname].[txtEndDate]

Be sure the textboxes are unbound (nothing in their Control Source).
 
J

John W. Vinson

Thank you. I got this to work.

What I also need is to be able to have a start date and no end date and to
be able to clear the dates and show all.

I should have posted the "long form": a criterion of
= NZ([forms].[yourformname].[txtStartDate], #1/1/100#) AND < DateAdd("d", 1, NZ( [forms].[yourformname].[txtEndDate], #12/30/9999#))

will cover all eventualities, including returning records where there is a
time portion.
 
A

Anne

That was exactly what I needed. Thank you

John W. Vinson said:
Thank you. I got this to work.

What I also need is to be able to have a start date and no end date and to
be able to clear the dates and show all.

I should have posted the "long form": a criterion of
= NZ([forms].[yourformname].[txtStartDate], #1/1/100#) AND < DateAdd("d", 1, NZ( [forms].[yourformname].[txtEndDate], #12/30/9999#))

will cover all eventualities, including returning records where there is a
time portion.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top