Results 1 to 2 of 2

Thread: Code Help!

  1. #1
    Join Date
    Jun 2004
    Posts
    31

    Unanswered: Code Help!

    I am working on the new microsoft visual basic 2005 and typically the following statement would be completely valid (in access)

    For i = 2 To 12
    Me.Controls("giro" & i).Value = 0
    Next i
    However whenever I try the same for VB 2005 I get an error message saying property 'item' is 'readonly'. Can someone help? Thank you in advance.

  2. #2
    Join Date
    Mar 2004
    Location
    www.scirocco.ca
    Posts
    346
    You are cycling through the controls on your form. One of those controls Item property are only read only. What controls are you using?
    http://www.scirocco.ca/images/banner...occobanner.gif

    Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

    Or try our Ask An Expert service to answer any of your questions!

Posting Permissions

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