home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1754
Discussions: 188,402, Posts: 2,243,608, Members: 232,631
Old December 11th, 2004, 03:27 AM   Digg it!   #1 (permalink)
Member
 
Join Date: Sep 2004
Posts: 275
Search by Date -- VB.NET

Code:
 Private Sub GetPO()

        Dim fromdate As Date
        fromdate = cboPOsearchTD.Text + "/" + cboPOsearchTM.Text + "/" + cboPOsearchTY.Text
        

        objDS.Clear()
        objDS = objUser.Search_tblUser("Select * from tbl_PURCHASE where Order_Date = 'fromdate'")
      
        Try
            dgPOSearch.DataSource = objDS.Tables(0)
        Catch ex As Exception

        End Try

    End Sub
I've got a Format Error "Data Format mismatch "

How Come ??

The "Order_Date " is in Date/Time format in MS Access Database !!

Please Help ! i've been stuck in this error for few weeks !!!

rex028 is offline   Reply With Quote
Old December 11th, 2004, 02:09 PM     #2 (permalink)
Member
 
Join Date: Oct 2003
Posts: 255
I would try changing the data type in access to text. Ive had problems in the past similiar to your issue. When using vb as a front end its better to just validate everything in vb rather then the database side

amtrac24 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
get date in access danlindley Webmastering and Programming 2 August 9th, 2004 05:26 PM
reset search page to default JacobM5727 Technical Support 6 January 15th, 2004 06:11 AM
Digital Camera on RH9 Logic Linux and Unix 9 December 5th, 2003 07:37 AM
MS Access Help with a Query Marvinator Applications and Operating Systems 2 December 2nd, 2003 03:24 PM
Date Notification eastfield Webmastering and Programming 8 January 22nd, 2003 03:10 AM

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Please help! multiple problems! (4)
How to transfer music from iPod.. (0)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:00 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28