Results 1 to 3 of 3
  1. #1
    dbowman1970 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2

    Combining Openrecordset RecordsetOptionEnum Options

    How are RecordsetOptionEnum options combined in an DAO Openrecordset statement.
    For example db.openrecordset( strsql, dbOpenDynaset, dbseechanges and dbinconsistent). I need both of the last 2 options since I am connecting to a sql server and the query structure needs the inconsistent parameter.



    Thanks in advance.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,845
    not tried, but normally you just add them

    dbOpenDynaset+dbseechanges+dbinconsistent

    ensuring you don't have any which are mutually exclusive

    if you see this link

    https://msdn.microsoft.com/en-us/lib.../ff192649.aspx

    you'll see the numbers are a square progression so it is not possible to add combinations to the same value

  3. #3
    dbowman1970 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Jan 2017
    Posts
    2
    Thanks Ajax this seems to have solved the question since the recordset was created without errors.

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

Similar Threads

  1. Too Few Parameters on .OpenRecordset()
    By Voodeux2014 in forum Forms
    Replies: 9
    Last Post: 01-28-2016, 04:45 PM
  2. Replies: 14
    Last Post: 07-22-2013, 12:39 PM
  3. db.OpenRecordset error
    By jscriptor09 in forum Programming
    Replies: 4
    Last Post: 01-27-2012, 12:17 AM
  4. DLookup in strSQL for OpenRecordset
    By szucker1 in forum Programming
    Replies: 2
    Last Post: 07-30-2011, 06:00 PM
  5. OpenRecordset vs. Query
    By crispy-bacon in forum Programming
    Replies: 7
    Last Post: 07-04-2011, 09:52 AM

Tags for this Thread

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