Oracle Error -either eof or bof is true-connecting with vb thru adoddb

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #16
    Originally posted by mask
    rs.Open Sql, con, adOpenForwardOn ly, adLockReadOnly

    same problem persists with the above changes also.

    Set MSHFG.Recordset = rs
    This also doesn't works , it gives error - no such data member exists
    The control used in the previous code is a hierarchical flex grid . Try using the same control.

    Comment

    • mask
      New Member
      • Sep 2007
      • 17

      #17
      Originally posted by debasisdas
      The control used in the previous code is a hierarchical flex grid . Try using the same control.
      i am using hierarchial flex grid control only

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #18
        Originally posted by mask
        i am using hierarchial flex grid control only
        But that piece of code works percectly for me.

        Ensure that you have used the SET keyword.

        Comment

        • mask
          New Member
          • Sep 2007
          • 17

          #19
          flex grid problem solved , small mistake was there in name of control,

          one cause of problem i found was name of table having underscore, but after correcting that , now my code is working for my table but only when i use primary key in where clause , when i try to use non pk column and make query ,for that again it is showing previous error.

          my table is hrd1 having columns empno (pk) and exp1 (experience), , both number type,



          when i give query



          st= 'select * from hrd1 where empno=' & text1.text



          it works fine ,but for query




          st= 'select * from hrd1 where exp1=' & text1.text

          it is not working

          thx n regards

          Comment

          • cvraghavan1979
            New Member
            • Jan 2008
            • 28

            #20
            Originally posted by mask
            flex grid problem solved , small mistake was there in name of control,

            one cause of problem i found was name of table having underscore, but after correcting that , now my code is working for my table but only when i use primary key in where clause , when i try to use non pk column and make query ,for that again it is showing previous error.

            my table is hrd1 having columns empno (pk) and exp1 (experience), , both number type,



            when i give query



            st= 'select * from hrd1 where empno=' & text1.text



            it works fine ,but for query




            st= 'select * from hrd1 where exp1=' & text1.text

            it is not working

            thx n regards

            hi,
            is the field u r verfying is of type number. why can't u try to use
            e = val(text1.text)
            also check whether u've used any keyword as the fieldname in the table. The fieldname : Name, date like this also will affect the execution of the query.
            regards,
            vijay

            Comment

            Working...