Results 1 to 6 of 6

Thread: Solved: Access front end SQL backend recordsets

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    VBAX Mentor Movian's Avatar
    Joined
    Aug 2008
    Location
    NC, USA
    Posts
    399
    When using DAO with the additional parameter you specified i get the error

    Runtime error 91

    Object Variable or with block variable not set

    [vba]Dim myrs As DAO.Recordset
    Set myrs = CurrentDb().OpenRecordset("Settings", dbOpenDynaset)[/vba]
    I will look into using stored procedures, however this is a LARGE DB (90 mb without only default table information.)

    This is going to be a long process, however im sure it will be worth it in the end. Also i have one other question,

    I have the new adp file on my machine connected to a DB. How would i go about setting it up so that i can deliver it to a client so that they can connect it to a different SQL express DB ?


    ~Ok having some issues with a stored procedure conversion.
    [VBA]
    SELECT tblLookupValues.Value, tblLookupValues.Order
    FROM tblLookupValues
    WHERE (((tblLookupValues.Form1)=ActiveControlParentFormName()) AND ((tblLookupValues.Control)=ActiveControlName()))
    ORDER BY tblLookupValues.Order;[/VBA]

    its complaining that it doesn't know the function activecontrolparentformname()

    Which of course the server will not as thats an internet access function. How would i get around this.

    I use this to setup user definable dropdown lists. for the whole system based on form name and control name.

    As im not too comfortable with SQL yet am having some minor issues (il get through them). Any help in the mean time is appreciated.
    Last edited by Movian; 07-28-2010 at 10:09 AM.
    "From the ashes of disaster grow the roses of success" - Chitty chitty bang bang

    "I fear not the man who has 10,000 kicks practiced once. I fear the man who has 1 kick practiced 10,000 times" - Bruce Lee

Posting Permissions

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