Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Intermittent oracle error
"Gabriel Gonzalez" <no-spam_at_no-spam.com> wrote in message news:<opacnTe2KI8dEwmjXTWcoA_at_giganews.com>...
> Two questions:
>
> 1) How are you calling this, ODBC, OLEDB, which exact driver (ie, Oracle
> ODBC v8.0.5.2, etc...)?
>
> 2) What is the VB source code (what is your code, do you prepare statement,
> how do you call the function, how do you assign bind variables, etc...)
Thank you for your response, here are the answers to your questions.
Set ors = oCmd.Execute
' will need a while loop here
While Not ors.EOF
If UCase(TypeName(oControl)) = "TREEVIEW" Then Set oNode = oControl.Nodes.Add("root", tvwChild, "Facility" & ors("facilityid"), ors("facilityname"), "donorfac") oNode.Tag = ors("facilityid") With oControl.Nodes Set oInboundNode = .Add("Facility" &ors("facilityid"), tvwChild, "Inbound" & ors("facilityid"), "Inbound", "pools", "openpools")
oInboundNode.Tag = ors("FacilityID") Set oOutboundNode = .Add("Facility" &ors("facilityid"), tvwChild, "Outbound" & ors("facilityid"), "Outbound", "pools", "openpools")
oOutboundNode.Tag = ors("FacilityID") End With ElseIf UCase(TypeName(oControl)) = "COMBOBOX" Or UCase(TypeName(oControl)) = "LISTBOX" Then oControl.AddItem ors("FacilityName") oControl.ItemData(oControl.NewIndex) = ors("FacilityID") End If ors.MoveNext