Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Ado Data RDS > isn't accessing...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 278 of 305
Post > Topic >>

isn't accessing value internally

by =?Utf-8?B?VklLQVMgS1VNQVIgR1VQVEE=?= <VIKASKUMARGUPTA@[EMAIL PROTECTED] Jun 19, 2006 at 05:58 AM

Dear Sir/Mad'm
>                         I am a new vb6.0 developer.i got a problem when
> i was doing a small application My problem is that
>                          table xyz
>    col:              a                           b
>                     12                        15
>                            table pqr
>         col:                     p
>                               rs!a+rs!b
>               i had to write code like this
>               CN.Open "DSN=CONSOLIDATE;UID=SA;PWD=SA;"
>               CMD.ActiveConnection = CN
>          button_click event
>               cmd.commandtext="select * from xyz"
>               rs.open cmd,,adOpenDynamic, adLockOptimistic
>               if(rs.eof=true)
>               cmd.commandtext="select * from pqr"
>               rs1.open cmd,,adOpenDynamic, adLockOptimistic
>                dim c as integer
>               while(rs1.eof=false)
>                    c=rs1!p  ‘error message shows TYPE MISMATCH
>                    list1.additem c
>                    rs1.movenext
>               wend
>               end if
> but i was getting an error of type mismatch b’coz the statement rs1!p
is returning a string(rs!a+rs!b), is not accessing  the value of rs!a and
rs!b . is not accessing a value of fist table xyz
>                how could i resolve this query;
>                               i am very grategul if you will reply my
> query; i am waiting for ur response
                             thxxx for reply I have also done like this
but 
not resolving this error. Plzz resolve this query ; I am very grateful to
you 
if you will reply this query again.
                                                                   with 
regards
                                                               vikas kumar

gupta
 




 2 Posts in Topic:
isn't accessing value internally
=?Utf-8?B?VklLQVMgS1VNQVI  2006-06-19 05:58:02 
Re: isn't accessing value internally
"Brian Muth" &l  2006-06-19 09:08:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:27:07 CST 2008.