One hopeful solution to Operation is not allowed in this Context issue-VBForums
Results 1 to 4 of 4

Thread: One hopeful solution to Operation is not allowed in this Context issue

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    4

    Post One hopeful solution to Operation is not allowed in this Context issue

    "Operation is not allowed in this Context."

    I got this on some of my code.

    It turned out to be I was trying to reference the field name as a recordset property.

    e.g. rs.firstname rather than rs.fields("firstname")

    I could advise to run through your code and check the methods, properties and objects.

    Useful sites:
    http://www.w3schools.com/
    Check out the ASP and ADO area. You might need to check on the recordset object methods etc.
    http://www.devguru.com/
    This is also good for object referencing.

  2. #2
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,334

    Re: One hopeful solution to Operation is not allowed in this Context issue

    Is this supposed to be a response to another thread instead of a brand new thread?
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2007
    Posts
    4

    Re: One hopeful solution to Operation is not allowed in this Context issue

    a new thread.. instead on an issue I thought id post a solution! Might help someone..I hope :S

  4. #4
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,334

    Re: One hopeful solution to Operation is not allowed in this Context issue

    Quote Originally Posted by g000we
    a new thread.. instead on an issue I thought id post a solution! Might help someone..I hope :S
    No problem.

    But, it should go in our CodeBank repository. Typically that is where members will look when they are searching for something.

    Thanks for the tip.

    Moved To The CodeBank
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.