Results 1 to 3 of 3

Thread: Bang Operator

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    Hi,

    I am using a ADODB recordset which is connected to a database in SQL server. And I am trying to use the !(bang) operator to access a field value from a recordset. But it is giving a error. ie. Following usage gives a error.

    rs!fieldname

    But if I replace it with

    rs.Fields("fieldname").value

    notation it works. I thought both were interchangeable.

    Can somebody help me to understand why this problem is occurring?

    Bye,
    Sundar

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Posts
    104
    It works fine for me:

    lngID = rs!LocationID
    Um americano que fala portugues.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    3
    This is the exact statement

    dbDiags.Recordset.Fields("diag") = xdiags.Fields("diag").value

    The left hand side is a ado data control and declaration of xdiags is as follows

    Dim xdiags As ADODB.Recordset.


    Thanks,
    Sundar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width