Results 1 to 2 of 2
  1. #1
    Phred is offline Competent Performer
    Windows XP Access 2010 (version 14.0)
    Join Date
    Dec 2009
    Posts
    246

    Cool Error 3211

    Access 2007, Single User on one machine, VBA skill level???? Well, I'm not on the short bus but I'm still not driving my own car. This Code was working spiffy in the past. The DB is not compiled or split yet. It will be in a multiuser environment.



    I have a query that displays the Lowest Price Vendor information on a form. The single table under it is Tbl_LPVCurrent. This table is stand alone and not related to any other tables. It is however called up in a combo box in various places when a user needs to change an existing item for a lower price item.

    I have a command button on a form. The user clicks the button and it runs the series of queries below recalculating the Lowest Price Vendor. This data then refreshes to the same screen and displays new pricing to the user. A lot of the queries are Make Table. When it works, it works fast.

    I have read a lot of forums and see little that substantially addresses this error. I have sprinkled DoEvents everywhere, don't laugh.

    Private Sub CreateNewLPVList_Click()

    DoCmd.Close acTable, "Tbl_LPVCurrent" (Doesn't work)

    DoEvents (DoEvents doesn't work)

    DoCmd.SetWarnings False

    DoCmd.OpenQuery "Qry_LPV_ArchiveToTbl_LPV_Archive"

    DoEvents

    DoCmd.OpenQuery "Qry_LPV_Step0_Eliminate_Nulls_inactives"

    DoEvents

    DoCmd.OpenQuery "Qry_LPV_Step1_ExtractMinLowestPriceVendor"

    DoEvents......

    DoCmd.OpenQuery "Qry_LPV_Step1b_ExtractMinLowestPriceVendor"

    DoCmd.OpenQuery "Qry_LPV_Step2_ExtractCombinedVendors"

    DoCmd.OpenQuery "Qry_LPV_Step3_ExtractMinLowestPriceVendor"

    DoCmd.OpenQuery "Qry_LPV_Step4_ExtractMinLowestPriceVendor"

    DoCmd.OpenQuery "Qry_Lpv_Step5_LPV_Tbl_LVPCurrent"

    DoCmd.OpenQuery "Qry_LPV_Step5b_ChangeYestoNO_Tbl_VendorPrices "

    DoCmd.OpenQuery "Qry_LPV_Step6_ApplyLPVtoTbl_VendorPrices"

    Me.Refresh

    DoCmd.SetWarnings True

    Exit Sub

    End Sub

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    What is the exact error message? Have you step debugged? What line throws the error? Why are you doing Make Table queries?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 09-28-2011, 09:20 PM
  2. Error 3211 Object cannot be locked
    By TheShabz in forum Forms
    Replies: 9
    Last Post: 08-23-2011, 12:05 PM
  3. Error 2501 displays with Error handling
    By agent- in forum Programming
    Replies: 13
    Last Post: 08-05-2011, 02:20 PM
  4. Error 13 Type Mismatch error
    By GlennBurg in forum Programming
    Replies: 1
    Last Post: 06-21-2011, 03:05 AM
  5. Replies: 8
    Last Post: 05-16-2011, 06:01 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
  •  
Other Forums: Microsoft Office Forums