Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > Oracle
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 19th, 2004, 05:43 AM
Authorized User
 
Join Date: Jan 2004
Location: lahore, punjab, Pakistan.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default oracle Date Problem

I am using oracle 8.1.6 and vb 6.0 and win 2k in my home
when I try to insert into date in my table(feild has date datatype) using DTpicker control in vb6.0
it gave me error (differant at differant times)
Error # 1
a numeric value was encountered where a nonnumeric value was expected
Error #2
literal do not match the format string
Error#3
not a valid month

then some how these error removes but start giving me error
"accessor is not parameter accessor"
when I assign date retreived from db to DT poicker e.g
this is my query select dbirth from student where student_id = 100099
dtp1.value = rs.feilds(0).value
this line generate the above error

I've asked many ppl about this but didnt get any answer so changed my date type to string.
but now it is causing me problem while retreiving data when my where clause have anything other than equal sign

like if I have select ..... where dbirth = '31-12-88'

and If am using any other operator (other than = ) it gives unexpected result now how I can retreive data with the desired results
Unfortunately I dont have time to change back to date type.............
So if there is any possible solution with this scenerio
all the date (that are string)have format 31-12-99 means dd-mm-yy




 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
persian date problem in oracle form6i mmrz C# 0 August 15th, 2007 02:17 AM
Oracle Date sql string in C# vhrao C# 10 July 25th, 2007 06:40 AM
Oracle Sequence No , Date format ssertial BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 January 23rd, 2005 06:01 AM
Date Format problem in Oracle ppenn Oracle ASP 1 May 10th, 2004 06:00 PM
How to query Date format in Oracle samlow82 ADO.NET 1 July 18th, 2003 04:34 AM



All times are GMT -4. The time now is 10:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.