473,396 Members | 1,768 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.

type mismatch error when date in 4/01/2007 and 4/31/2007

1
Hi to everyon
i have a problem plz help
me
when i filter a recordset by date in vb and ms access
and enter the any date of month 04/2007 i get the error msg
as type mismatch
but i works for rest of all the months of 2007
Apr 7 '07 #1
3 1270
Killer42
8,435 Expert 8TB
Hi to everyon
i have a problem plz help
me
when i filter a recordset by date in vb and ms access
and enter the any date of month 04/2007 i get the error msg
as type mismatch
but i works for rest of all the months of 2007
Can you show us the code you're using? And what version of VB is this?

(Don't forget, in SQL you generally have to specify dates in U.S. format - that is, m/d/y.)
Apr 8 '07 #2
iburyak
1,017 Expert 512MB
Partial date is not recognized.

Use following :


[PHP]Month(datecolumn) = 4
Year(datecolumn) = 2007[/PHP]

Good Luck.
Apr 8 '07 #3
Killer42
8,435 Expert 8TB
Partial date is not recognized.
The OP did not indicate they are entering partial dates. If that were the case, it wouldn't work for the other months either.
Apr 9 '07 #4

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

Similar topics

7
by: middletree | last post by:
I've been messing with this for hours, and have been to various sites, including Aaron's site, and am truly stumped. The short version: in SQL Server, the 4 fields in question are datetime. I...
2
by: mark | last post by:
I have a form with the following code on Click that calls a procedure passing a date data type value. The field in the table is a date/time data type. What is causing the type mismatch when it...
1
by: Mike | last post by:
I have a function which caculates the number of years from a certain date. The function works great if the date is not null however when the date is null I recieve a type mismatch error. The code...
1
by: Matt | last post by:
can anyone help with why this is returning a Data Type mismatch error? dim strTestDate, strJobNumber strTestDate = "3/8/2007" strJobNumber = Request.QueryString("JobNumber") strConnect =...
19
by: Lysander | last post by:
I have written a query that takes three integers representing day,month and year, forms a date from them and compares this date to the date the record was entered and returns any records where the...
7
by: Mike | last post by:
Type Mismatch error I recieve a type mismatch error on the following line of code which is based on a specific date. It does NOT break on all records only "some". The dates for the records...
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...
3
by: Nepenthen | last post by:
Hello – I am still new to Access and I am currently working on debugging some code. I have a form with the following: Employee Name (combo with select all choice) Task (combo with select all...
1
by: Greg (codepug | last post by:
Solution Note: I am experimenting with an excellent popup calendar I found on the Allen Browne web site. I was receiving the following error (Error 13: Type mismatch) when clicking a button...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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.