Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2004, 05:43 AM
Authorized User
 
Join Date: Jan 2004
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









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





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