473,396 Members | 1,599 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,396 software developers and data experts.

Group By DateValue fails in Access 2K

J
In Access 2000 the following query works:

Select DateValue(EnteredTime)
From tblMyTable

But adding the following clause fails:

Group by DateValue(EnteredTime)

The error is:

Data type mismatch in criteria expression. A similar query appears to work
ok in Access 2003.

Thx for your help.
Nov 13 '05 #1
3 1932
On Mon, 26 Jul 2004 00:03:31 -0500, "J" <so*********@nobody.com> wrote:
In Access 2000 the following query works:

Select DateValue(EnteredTime)
From tblMyTable

But adding the following clause fails:

Group by DateValue(EnteredTime)

The error is:

Data type mismatch in criteria expression. A similar query appears to work
ok in Access 2003.

Thx for your help.


What is DateValue? Do you mean CDate?
Nov 13 '05 #2
J

What is DateValue? Do you mean CDate?


It's an Access function that's apparently commonly used in order to retrieve
the date only from a datetime field.
Nov 13 '05 #3
On Mon, 26 Jul 2004 10:52:42 -0500, "J" <so*********@nobody.com> wrote:

What is DateValue? Do you mean CDate?


It's an Access function that's apparently commonly used in order to retrieve
the date only from a datetime field.


I guess I've never known about that. I've always used
CDate(Int(<datevalue>)). Perhaps, that will work in your case, if DateValue
will not.
Nov 13 '05 #4

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

Similar topics

5
by: Robin Cull | last post by:
Hi all, I'm writing a script that needs to do lookups on the UNIX passwd and groups file on textual usernames/group names and return numeric UID/GID. Something that gives access to the C...
4
by: Rene' Nielsen | last post by:
Context: Running Windows 2003 Server on an intranet. A web is configured with an anonymous access account that is a domain account that has been granted the desired access to a file on another...
2
by: CapeCoder | last post by:
I am using Access as the reporting front end to some linked SQL2000 tables. I'm told that if I use DateValue() or "WHERE field like %" in a query, the database engine bypasses any optimization...
3
by: Georges Heinesch | last post by:
Hi. Why is this DAO line producing error 3077 (Syntax error in number in expression)? rst.FindFirst "ValidFrom = " & DateValue(varDate) rst is a defined recordset varDate is a valid date....
2
by: deko | last post by:
How do I limit the results of this query to return only the NextAppt and the corresponding Subject? SELECT , MIN() As NextAppt FROM tblAppointments WHERE...
5
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I...
0
by: kkos | last post by:
I noticed the following issue posted as a double-hop issue in many discussion boards but found no answers that explain how to pass the second hop with windows auth from IIS ASPX page to remote SQL...
3
by: Bruce Lawrence | last post by:
I've got a form that when it opens it prompts the user for 2 peices of information. The Asset and the Date. getasset = InputBox("Enter the Asset Number") If getasset = "" Then Exit Sub Else...
4
by: anniebai | last post by:
In our database, the publication year and month are saved in different columns, the query is to find out the pubs after 7/1/2006. My following query works but not get the desired dataset, e.g....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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 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.