473,473 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP and Microsoft Access datatype - Date/Time

67 New Member
Hi!

I am using for my project ASP and Microsoft Access.

start date and end date -- In database (Microsoft Access) i set the datatype is Date/Time. It's display error. The error is below:
  • Error Type:
Microsoft JET Database Engine (0x80040E07)
Data type mismatch in criteria expression.
/Travel/Include/Update_Data.asp, line 66
How i can solve this problem? Kindly give some more idea and example..
AND
Fees paid Date:----- In this please i got error... (If they didn't paid fees, i want to pass the value for date is "null or nil") how? pls explain to me... pls help me...

Thanks & Regards,
Susan.
Apr 6 '09 #1
3 3804
vadims
1 New Member
Most of the times errors like that are due to wrong date format. Format any dates by using yyyymmdd format, which is the most universal format type, before updating your db.
It whould be usefull if you post your code here as I'm only guessing.
Apr 6 '09 #2
jhardman
3,406 Recognized Expert Specialist
@vadims
You're right that that is the issue, and if your solution works, then there is no reason for me to argue, but remember that M$ is a US company and if it will fit in "mmddyy" they assume that is what you mean. I always recommend doing it in "dd mmm yyyy" format (like "12 Jan 2009", or some other format that uses full month name or abbreviation, there is a format in ymd order that is comparable - "2009-January-12") because it is the least ambiguous - M$ access never gets it wrong when you format it like that.

Jared
Apr 7 '09 #3
Nicodemas
164 Recognized Expert New Member
Susan,

I also remind you that MS Access requires "#" marks around dates in SQL strings.

Example:

INSERT INTO Employees (name, hireDate) VALUES ('Bob', #12-JAN-2009#);
Apr 16 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jay | last post by:
I previously posted this question under Visual Basic newsgroup, but was advised to re-post here. I'm hoping someone can help me solve an issue I'm having with VB.Net and Access 2000. Here's...
3
by: D | last post by:
Guys, i had try to update the "Date" value in my access to empty string. The data type for the column value is Date/Time. I use the following simple code: rsForum ("Date") = "" It give me...
4
by: c_bowen | last post by:
I am using Visual Studio .NET 2003 with SQL Server 2000. I am trying to insert the date and time into a SQL database by using hour(now). I am having a hard time trying to figure out which datatype...
4
by: Steve B. | last post by:
How do I format a DataSet (DS), generated from Access, which loads a Textbox (TB) to only show the date in the TB instead of the date and the time? Details: My TB is filled by a DS containing...
2
by: hardik | last post by:
hi friends, i am really surprized the way access behaves in date fields i mean it's all ok when you have us time zone or us servers but if you have diffrent timezone like uk then access creates...
8
by: saladinator | last post by:
I have created an Excel spreadsheet that has a lot of data. What I want to do is import the spreedsheet to Access and create a form so that I can print each row per page in a proffessional manner....
1
MMcCarthy
by: MMcCarthy | last post by:
Access has a number of built-in functions which can be generally used in queries or VBA code. Some of the more common ones are: Note: anything in square brackets is optional Date Functions ...
3
by: Harlequin | last post by:
I must start this posing by making the point that I am NOT a VB programmer and I'm something of a Newbie to MS Access. I can program in a number of languages (Java, Javascript, PERL,PHP and TCL) but...
7
by: mlthomas007 | last post by:
Hi, A client asked for a code book (all fields, descriptions, tables, etc.) from our Access database. Has anyone had to do this? It seems to me there must be a way to extract all this...
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
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...
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
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.