Consulting

Results 1 to 8 of 8

Thread: Solved: How to edit field values in ADO recordset ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Smile Solved: How to edit field values in ADO recordset ?

    Hi guys,

    Please anyone can help on the below issue.

    Issue: I need to update the fields value to "Blank" wherever field in recordset has NULL.

    Error: I am getting Automation Error for the below code.
    [vba]
    Do While Not .EOF
    For Each ObjField In .Fields
    If IsNull(ObjField.Value) Then
    rst.Fields(ObjField.Name).Value = "Blank"
    End If
    Next ObjField
    rst.MoveNext
    Loop
    [/vba]

    Kindly let me know where I am wrong! or more information is needed.

    Thanks
    Last edited by sagotianitin; 03-26-2013 at 12:47 PM.

Posting Permissions

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