I have a query with a field named RECEIVED in which I have the
following criteria: =DateAdd('d',-Day(Date())+1,Date())
This Criteria returns all records which show a starting with the 1st
day of the current month.
I would now like to restrict this criteria only to the records showing
a date within the month range (ex. from 11/01/2003 until 11/30/2003).
It should not show records with a date later that the curren month.
Thanks. 3 6961
Paolo previously wrote: I have a query with a field named RECEIVED in which I have the following criteria:
=DateAdd('d',-Day(Date())+1,Date()) This Criteria returns all records which show a starting with the 1st day of the current month.
I would now like to restrict this criteria only to the records showing a date within the month range (ex. from 11/01/2003 until 11/30/2003). It should not show records with a date later that the curren month.
Thanks.
Watch word wrap:
= dateserial(year(date), month(date()), 1) and < dateserial(year(date),
month(date())+1, 1)
Regards
Peter Russell
Between DateAdd('d',-Day(Date())+1,Date()) And
DateAdd("m", 1, DateAdd('d',-Day(Date())+1,Date()))
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Paolo" <jp***@tin.it> wrote in message
news:9f*************************@posting.google.co m... I have a query with a field named RECEIVED in which I have the following criteria:
=DateAdd('d',-Day(Date())+1,Date())
This Criteria returns all records which show a starting with the 1st day of the current month.
I would now like to restrict this criteria only to the records showing a date within the month range (ex. from 11/01/2003 until 11/30/2003). It should not show records with a date later that the curren month.
Thanks.
Thanks Allen, I have used your code but still was showing dates
referred to the next month. What I did was just change the last +1 to
-1 and works:
Between DateAdd('d',-Day(Date())+1,Date()) And DateAdd("m", 1,
DateAdd('d',-Day(Date())-1,Date()))
"Allen Browne" <al*********@SeeSig.invalid> wrote in message news:<3f**********************@freenews.iinet.net. au>... Between DateAdd('d',-Day(Date())+1,Date()) And DateAdd("m", 1, DateAdd('d',-Day(Date())+1,Date()))
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org.
"Paolo" <jp***@tin.it> wrote in message news:9f*************************@posting.google.co m... I have a query with a field named RECEIVED in which I have the following criteria:
=DateAdd('d',-Day(Date())+1,Date())
This Criteria returns all records which show a starting with the 1st day of the current month.
I would now like to restrict this criteria only to the records showing a date within the month range (ex. from 11/01/2003 until 11/30/2003). It should not show records with a date later that the curren month.
Thanks. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: androtech |
last post by:
Hello,
I'm looking for a function that returns a date range for a specified week
number of the year.
I'm not able to find functions like this anywhere. Any pointers/help would
be much...
|
by: peashoe |
last post by:
I have an asp page that uses a calendar.js (pop-up) file to add an
exact date format in the text field (txtDDate). My problem is I need
some javascript that sets an alert that does not allow them...
|
by: Dr John Stockton |
last post by:
It has appeared that ancient sources give a method for Numeric Date
Validation that involves numerous tests to determine month length;
versions are often posted by incomers here. That sort of code...
|
by: Liz Malcolm |
last post by:
Hello and TIA. I have a DE form with an option group that if daily is
selected todays date is used for start and end date, if weekly is
selected Monday - Friday is used. I am trying to add a...
|
by: John Morgan |
last post by:
Does anyone know what parameter should be used instead of Date = 0 for the
optional parameter in the following function?
Public Function dhAge(ByVal dtmBD As Date, Optional ByVal dtmDate As Date...
| |
by: Assimalyst |
last post by:
Hi,
I have a working script that converts a dd/mm/yyyy text box date entry
to yyyy/mm/dd and compares it to the current date, giving an error
through an asp.net custom validator, it is as...
|
by: Luvin lunch |
last post by:
Hi,
I'm new to access and am very wary of dates as I have limited
experience in their manipulation and I know if they're not done
properly things can turn ugly quickly.
I would like to use a...
|
by: dave |
last post by:
I need to compute an expiration date based on the number of hours,
days, or months purchased.
The expiration date needs to be expressed in minutes something like
'1260481600'.
How can I get the...
|
by: Jes |
last post by:
Dear all
I have a date field on a HTML form where the user is asked to key in
dd/mm/yyyy
However, when that is written to MySql it is either not accepted or
another value is tored in the...
|
by: murch.alexander |
last post by:
I made a simple public function to set and return a date value (see
below). I have a number of queries that call up the function to get
the "As Of Date," which is typically set to today's date....
|
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...
| |
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |