473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to run a query on a truncated date

Faz
Hallo,

I need to do a simple query to search for database records as follows:

Show me all records where the truncated current date (defined as Now()
in access) is between the two fields called effective_start_date and
effective_end_date.

In the query I have created an Expression defined as Now(). In the
criteria I have put the following criteria:
Between [effective_start_date] And [effective_end_date].

How can I change the Now() expression to show the truncated version of
Now() as I need to pick up records that have an end date of today as
well.

Thanks.
Nov 13 '05 #1
1 1231
Br
Faz wrote:
Hallo,

I need to do a simple query to search for database records as follows:

Show me all records where the truncated current date (defined as Now()
in access) is between the two fields called effective_start_date and
effective_end_date.

In the query I have created an Expression defined as Now(). In the
criteria I have put the following criteria:
Between [effective_start_date] And [effective_end_date].

How can I change the Now() expression to show the truncated version of
Now() as I need to pick up records that have an end date of today as
well.

Thanks.


Date() ???

Br@dley
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Steve Bishop | last post by:
I'm having problems using an update query. I get the error: Server: Msg 8152, Level 16, State 9, Procedure SP_MemberUpdate, Line 3 String or binary data would be truncated. The statement has been...
1
by: Dino Nardini | last post by:
Hey folks, I've been migrating a content management system from MS SQL Server 7 over to PostgreSQL. I used the EMS DataPump utility (http://www.ems-hitech.com/index.phtml) to migrate the...
8
by: Adam Louis | last post by:
I would like help resolving this problem. I'm a novice who's been hired to query a hospital database and extract useful information, available to me only in a dynamically generated, downloadable...
2
by: martinjeffreys | last post by:
Hello I'm using an append query from an Access front end to add data to a back-end SQL table. It all works OK - except a Memo field is being truncated to 765(ish) characters. Any thoughts...
2
by: Kevin Nechodom | last post by:
I have a table with 3 fields: UnitTime, Unit, and UnitCount in an MDB database. I have a query, qryWriteUnitOccupancy, that appends a record to that table using 2 parameters: TimePoint, and...
2
by: Greg Stark | last post by:
I have a query that is taking too long when run from a larger plpgsql function (40-50s). However when I explain analyze it under psql it runs fine (4-5s). This is with the same parameters, and I've...
0
by: Phil C. | last post by:
Hi, I'm using Access 2000. I have a Select Query that uses the MID function to separate the actual text of articles from the title of the articles. The articles are enterd into the...
6
by: RLau | last post by:
Hi All, I'm using ODBC to link my Access 2000 database tables to MS SQL Server 2000 database and create queries and reports in Access. When I use a single query to retrieve a text field with...
0
by: agtsrbt | last post by:
I'm just beginning to use SQL for MS Queries in Excel and am having difficulty with how to imput the date into a prompt. I've used prompts for other fields and they seem to work fine, however,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.