• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 267
  • Last Modified:

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?

 
0
jfs9900
Asked:
jfs9900
  • 2
1 Solution
 
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


0
 
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
0
 
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.


0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now