FrontPage DRW and searching by date....

Ok I have an MS Access DB with a field called "DATE" marked as data type "Date/Time"

Now lets say I want to setup a search with Front Page to search for specific months, or specific years. Like for example return results only in March, or only in April etc?

 
jfs9900Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

hhammashCommented:
Hi,

First of all you can't name the field as Date, it is a reserved word,  it will create problems later.

It depends how are you entering the month or the year?  are you using the Date/Time field to type today's date like:

03/26/2006
mm/dd/yyyy

Lets say you want to view results by March?  only results during 03?

The esiest way it to search for 03/01/2006 to 03/31/2006  this is to specify March 2006,  or 01/01/2004 to 12/31/2004 to specify year 2004.

In your search form you should put two search fields
- Field 1 name it as stdate
- Field 2 name it as endate

Create a DRW and create a statement that searches Between.

Save the DRW
Post the form to the DRW


jfs9900Author Commented:
The offical name of the feild is "TIMESTAMP"

When I do what is listed above I get the following error:

Database Results Error
Description: Data type mismatch in criteria expression.
Number: -2147217913 (0x80040E07)
Source: Microsoft JET Database Engine
hhammashCommented:
OK,


Timestamp field is the problem.

I usually create two fields on my own 1 for date and 1 for time I don't rely on the TimeStamp field that is created by Frontpgae.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.