473,395 Members | 1,458 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,395 software developers and data experts.

Problem in Reterving numeric Data from oracle 8i through adodb.connection in vb 6.0

I am using Oracle 8 I and Vb 6 and connection to oracle by DSN.
************* Code **************
This is my code:
Public con As New ADODB.Connection
Public myrs As Recordset

con.Open "eFarm", "scott", "tiger"

***************function *************

Function upfarm(ByRef frm1 As Form, ByRef cmb1 As ComboBox, ByRef txt1 As TextBox)
' function for filling group name in combo box'
Dim nm As String
cmb1.Clear
Set myrs = con.Execute("select count(*) from farm")
max1 = myrs(0)
MsgBox (max1)
If max1 > 0 Then
Set myrs = con.Execute("select Farm_ID,farm_name from farm")
MsgBox (myrs(0))
nm = myrs(1)
gcode1 = myrs(0)
MsgBox ("nm = " & nm & " gcode= " & gcode1)
Do Until myrs.EOF
cmb1.AddItem (myrs(1))
cmb1.ItemData(cmb1.NewIndex) = myrs(0)
cmb1.Text = myrs(0)
'frm1.gpcode.Text = pgpcode
myrs.MoveNext
Loop
myrs.MoveFirst
Else
cmb1.Text = "Empty"
End If
End Function

***********end function *****************

When i trying to retrive data from oracle i am able to get only the character type data while in numberic data i am only getting
0 no orginal value.

Please solve the problem and tell me what to do, what can be done.

Thanks in advance

Vikas

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine supports Post Alerts, Ratings, and Searching.
Nov 21 '05 #1
4 1502
Vikas,

This is a VBNet newsgroup not a VB classic newsgroup.

There are a lot VB classic newsgroup. However because that is still the
activest one I advise you to ask your question in

microsoft.public.vb.general.discussion

You can as well try it in the newsgroup

microsoft.public.data.ado

Not that you are not welcome here, however in those newsgroup are persons
who active use the same languages as you.

Cor

<vikas@-NOSPAM-dmexporter.com>
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN.
************* Code **************
This is my code:
Public con As New ADODB.Connection
Public myrs As Recordset

con.Open "eFarm", "scott", "tiger"

***************function *************

Function upfarm(ByRef frm1 As Form, ByRef cmb1 As ComboBox, ByRef txt1 As
TextBox)
' function for filling group name in combo box'
Dim nm As String
cmb1.Clear
Set myrs = con.Execute("select count(*) from farm")
max1 = myrs(0)
MsgBox (max1)
If max1 > 0 Then
Set myrs = con.Execute("select Farm_ID,farm_name from farm")
MsgBox (myrs(0))
nm = myrs(1)
gcode1 = myrs(0)
MsgBox ("nm = " & nm & " gcode= " & gcode1)
Do Until myrs.EOF
cmb1.AddItem (myrs(1))
cmb1.ItemData(cmb1.NewIndex) = myrs(0)
cmb1.Text = myrs(0)
'frm1.gpcode.Text = pgpcode
myrs.MoveNext
Loop
myrs.MoveFirst
Else
cmb1.Text = "Empty"
End If
End Function

***********end function *****************

When i trying to retrive data from oracle i am able to get only the
character type data while in numberic data i am only getting
0 no orginal value.

Please solve the problem and tell me what to do, what can be done.

Thanks in advance

Vikas

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup
engine supports Post Alerts, Ratings, and Searching.

Nov 21 '05 #2
Vikas,

This is a VBNet newsgroup not a VB classic newsgroup.

There are a lot VB classic newsgroup. However because that is still the
activest one I advise you to ask your question in

microsoft.public.vb.general.discussion

You can as well try it in the newsgroup

microsoft.public.data.ado

Not that you are not welcome here, however in those newsgroup are persons
who active use the same languages as you.

Cor

<vikas@-NOSPAM-dmexporter.com>
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN.
************* Code **************
This is my code:
Public con As New ADODB.Connection
Public myrs As Recordset

con.Open "eFarm", "scott", "tiger"

***************function *************

Function upfarm(ByRef frm1 As Form, ByRef cmb1 As ComboBox, ByRef txt1 As
TextBox)
' function for filling group name in combo box'
Dim nm As String
cmb1.Clear
Set myrs = con.Execute("select count(*) from farm")
max1 = myrs(0)
MsgBox (max1)
If max1 > 0 Then
Set myrs = con.Execute("select Farm_ID,farm_name from farm")
MsgBox (myrs(0))
nm = myrs(1)
gcode1 = myrs(0)
MsgBox ("nm = " & nm & " gcode= " & gcode1)
Do Until myrs.EOF
cmb1.AddItem (myrs(1))
cmb1.ItemData(cmb1.NewIndex) = myrs(0)
cmb1.Text = myrs(0)
'frm1.gpcode.Text = pgpcode
myrs.MoveNext
Loop
myrs.MoveFirst
Else
cmb1.Text = "Empty"
End If
End Function

***********end function *****************

When i trying to retrive data from oracle i am able to get only the
character type data while in numberic data i am only getting
0 no orginal value.

Please solve the problem and tell me what to do, what can be done.

Thanks in advance

Vikas

---
Posted using Wimdows.net NntpNews Component -

Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup
engine supports Post Alerts, Ratings, and Searching.

Nov 21 '05 #3
<vikas@-NOSPAM-dmexporter.com> schrieb:
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN.


Notice that this is a VB.NET language group. For VB6 + database questions,
consider posting to one of the groups in the
microsoft.public.vb.database[.*] hierarchy.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #4
<vikas@-NOSPAM-dmexporter.com> schrieb:
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN.


Notice that this is a VB.NET language group. For VB6 + database questions,
consider posting to one of the groups in the
microsoft.public.vb.database[.*] hierarchy.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Navin | last post by:
hi, i am using the follwoing code to write a recordset to a csv file 'fcreateFile -file system object Do While Not oRs.EOF fcreateFile.Write(oRs.GetString(,1000,",",vbcrlf,"")) 'Write Login...
8
by: Dima Protchenko | last post by:
Hi, guys. Please help if you know something about this. Error: ADODB.Recordset error '800a0e78' Operation is not allowed when the object is closed. line: if not rs.EOF then (from the code...
2
by: mike | last post by:
Ok, I'll admit I'm VERY new to ASP but I simply cannot seem to get this to work. The problem is probably obvious but I just can't seem to find it. I'm trying to query an Oracle DB on another...
2
by: Jan van Veldhuizen | last post by:
I try to use the Server Data on Insert property to return a column value swhich is set in a trigger. But it does not work. Why not? What am I doing wrong? (BTW I'm using Oracle version 10) My...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
0
by: vikas | last post by:
I am using Oracle 8 I and Vb 6 and connection to oracle by DSN. ************* Code ************** This is my code: Public con As New ADODB.Connection Public myrs As Recordset con.Open "eFarm",...
3
by: Geoff Muldoon | last post by:
Cross-posted to comp.databases.oracle.misc and comp.lang.php ... Using PHP 4.3.11 on Linux and ADODB data abstraction library. Oracle client version is 10.1. Can successfully connect to...
1
by: saumitra75 | last post by:
I have a VB 6 application to connect to a Oracle database using ADO Connection. It works fine with Access. But when I try with my Oracle Database it does not retrieve any data. It can only show the...
0
by: mayurshah28 | last post by:
Hi everyone, im developing one application for banking. there i have stucked wit one prob. now prob is tat im not able to access multiple tables at a time through vb. my coding is as below Dim...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.