473,605 Members | 2,637 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MS Access And Datetime SELECT/UPDATE

Hi,
I spent all morning trying to find a way to select a datetime field from a
table (I work with ASP)
My SQL is "SELECT * FROM Mytbl WHERE myDate = #2.12.2003# "
(I live in Croatia, so that's the setting for a time format I use in
MSAccess, also, I use a Short Date format to put into table only a date, not
time, the application will probably always work on local server - intranet)
So, in my table there are several fields 2.12.2003. but when I try to SELECT
them with above criteria it returns me an error.
I also tried "SELECT * FROM Mytbl WHERE myDate BETWEEN #1.12.2003# AND
#3.12.2003#" I also tried using LIKE statement, but it doesn't work.
Nov 12 '05 #1
2 13712
"Juggernath " <Ja************ **@TOVANyahoo.c om> wrote in
news:bq******** **@bagan.srce.h r:
Hi,
I spent all morning trying to find a way to select a datetime field from
a table (I work with ASP)
My SQL is "SELECT * FROM Mytbl WHERE myDate = #2.12.2003# "
(I live in Croatia, so that's the setting for a time format I use in
MSAccess, also, I use a Short Date format to put into table only a date,
not time, the application will probably always work on local server -
intranet) So, in my table there are several fields 2.12.2003. but when I
try to SELECT them with above criteria it returns me an error.
I also tried "SELECT * FROM Mytbl WHERE myDate BETWEEN #1.12.2003# AND
#3.12.2003#" I also tried using LIKE statement, but it doesn't work.


Almost all programs, code and script recognize "yyyy-mm-dd".

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #2

"Lyle Fairfield" <Mi************ @Invalid.Com> wrote in message
news:Xn******** ***********@130 .133.1.4...
"Juggernath " <Ja************ **@TOVANyahoo.c om> wrote in
news:bq******** **@bagan.srce.h r:
Hi,
I spent all morning trying to find a way to select a datetime field from
a table (I work with ASP)
My SQL is "SELECT * FROM Mytbl WHERE myDate = #2.12.2003# "
(I live in Croatia, so that's the setting for a time format I use in
MSAccess, also, I use a Short Date format to put into table only a date,
not time, the application will probably always work on local server -
intranet) So, in my table there are several fields 2.12.2003. but when I
try to SELECT them with above criteria it returns me an error.
I also tried "SELECT * FROM Mytbl WHERE myDate BETWEEN #1.12.2003# AND
#3.12.2003#" I also tried using LIKE statement, but it doesn't work.


Almost all programs, code and script recognize "yyyy-mm-dd".

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)


I'm not so sure, because there are regional Settings on comp... In MSAccess
i have default value for the field now() and it enters d.mm.yyyy . Now I do
not understand Why cannot I simply Select with such criteria?
Nov 12 '05 #3

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

Similar topics

2
17348
by: zlatko | last post by:
There is a form in an Access Project (.adp, Access front end with SQL Server) for entering data into a table for temporary storing. Then, by clicking a botton, several action stored procedures (update, append) should be activated in order to transfer data to other tables. I tried to avoid any coding in VB, as I am not a professional, but I have found a statement in an article, that, unlike select queries, form's Input Property can't be...
4
43138
by: RDRaider | last post by:
How can I update only the date portion of a datetime field? Example: datetime field = '3/12/1995 12:05:50 PM' How can I change just the day '12' to a '7' Thanks
2
1667
by: abefuzzleduser2 | last post by:
I am using sql 2000 (mdb) with linked tables on SQL 2000. I need to use views to limit users records, instead of direct table access. I setup a single talbe view in sql and tested update and inserting the view using query analyzer. But when I add that view as a "linked" table in access (windows db security dsn-less). Access does not allow me to edit the data from view. Table has Pk have tried indexing view but we use several ntext...
1
4761
by: RML | last post by:
Hi everyone, I am using VB.NET 2003 and an OleDBDataAdapter to update an Access table's DateTime field. The field's format is set to "General Date" (ie: 11/24/2004 8:00:00 AM). The problem is the field ends up with only a date, with no time component. In my project... I added an OleDBDataAdapter using the wizzard to my form. I generated the DataSet and added the desired table. I verified the field type in the
13
5318
by: mfreeman | last post by:
The minimal code (VB.NET 2003) needed to show this problem is shown below. All I do is loop through the records in the table and update them without making any changes. Out of 600 records, about 40 of them throw Concurrency violation errors in the update, and my GetAllColErrs function provides no output. In comparing the rows that throw errors with those that do not, I could find no pattern. It is obviously a bogus error, as the...
2
3007
by: Chubbly Geezer | last post by:
Does anyone have any experience of this functionality. I have started to swap out my connection code for the std functionality within these dll's. The data connection is fine, I can also run commands and return datasets. However, the example they use to update a dataset is awful. It seems to reply on hard coded sql store procedures (3 for each table) in order to work. This is so much more unfriendly than the standard process of updating...
4
2403
by: RSH | last post by:
Hi, I have a situation where I have created a little application that makes an Access database from a SQL Database for reporting purposes. it does the job well, but it seems a bit slow. Is there anything that i can do to speed the app up a bit? namespace SQLToAccessBackup
2
2949
by: tedpottel | last post by:
Hi, I cannot get the following code to work import win32com.client import time engine = win32com.client.Dispatch("DAO.DBEngine.36") db=engine.OpenDatabase(r"testdate2.mdb") access = db.OpenRecordset("select * from test")
4
1621
by: psycho007 | last post by:
Hi I have a caller ID software that I would like to change from Microsoft Access database to Mysql and was wondering if somebody could help me. The code i currently have is: Private Sub OpenDataBase() Set fo = New FileSystemObject Set wrk = CreateWorkspace("", "admin", "", dbUseJet) If Not fo.FileExists(m_stDataPath & "callerid.mdb") Then
0
8004
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7934
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8418
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8071
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6743
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5445
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3912
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3958
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.