Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2014
    Posts
    26

    Runtime Error '-2147417848 (80010108) Method 'MoveFirst' of object 'Recordset2' failed

    Access Ver: 2013 64-bit



    I am getting this error for any property .movelast, .movefirst & .movenext.

    Code:
    Dim rsRecipeFragrance As DAO.Recordset
    
    
    Set rsRecipeFragrance = Forms!sf_Product!sf_Recipe_Fragrance.Form.Recordset
    
    
    With rsRecipeFragrance
    If .RecordCount <> 0 Then
        
        If Not .BOF And Not .EOF Then
            
                .MoveLast
                .MoveFirst
              
                Do While Not .EOF
                .Edit
                !RecipeIngredientVolume = DLookup("ProductConcentration", "tbl_product", "ProductID = " & rsRecipeFragrance!RecipeProductID) * DLookup("ProductVolume", "tbl_product", "ProductID = " & rsRecipeFragrance!RecipeProductID)
                !RecipeIngredientUnitRatio = rsRecipeFragrance!RecipeIngredientDropUnit / DSum("RecipeIngredientDropUnit", "tbl_recipe", "RecipeProductID =" & rsRecipeFragrance!RecipeProductID)
                !RecipeIngredientQuantity = rsRecipeFragrance!RecipeIngredientUnitRatio * rsRecipeFragrance!RecipeIngredientVolume
    
                .Update
                
                .MoveNext
                Loop
        End If
    End If
    End With
    I am currently trying to open a recordset for the subform only rather than opening the whole table and carrying out the calculation for the records.

    any suggestions?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    You should probably use the form's RecordsetClone. That's what I do.
    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: 3
    Last Post: 09-18-2014, 12:24 PM
  2. Replies: 11
    Last Post: 06-30-2014, 11:34 PM
  3. Runtime error 1004 - Save method of workbook failed
    By captdkl02 in forum Programming
    Replies: 2
    Last Post: 01-03-2013, 05:53 AM
  4. Replies: 1
    Last Post: 08-03-2012, 01:44 PM
  5. Replies: 1
    Last Post: 07-13-2012, 07:58 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