473,568 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ 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 3810
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
7818
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 the issue. I hope I've included all relevant information. On a form, I have a DateTimePicker with the following
3
4195
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 error when i try to run the asp and do an update. the error is Error Type:
4
1697
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 to use in SQL to store this value. I have tried using datetime, char, nchar, text and nothing seems to work. Anyone have any ideas? Thanks! ...
4
1364
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 the Date column from an Access file (i.e. DS - TableName.DateIn). Access file only shows date (no time). Originally, this date column was a string...
2
5151
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 so many problems .... first of all i try access with uk settings in date/time in field but access changes date after 09/11 to 11/09 i don't know...
8
2891
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. The problem is that whenever I import the data to access my dates show up in 38478 instead of 05/06/05. How can I convert this number back to...
1
19389
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 Date() - Returns the current system date Now() - Returns the current system timestamp (date and time)
3
5977
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 have never actually learnt VB so my request is that you bear this in mind if you plan on replying to this post. My request for help is as follows:...
7
3638
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 information from Access. Any assistance would be wonderful. Thanks.
0
7693
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...
0
7604
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...
0
8117
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...
1
7660
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...
0
5217
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...
0
3651
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...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
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
1
1207
muto222
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.