Results 1 to 4 of 4
  1. #1
    swagger18 is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2011
    Posts
    19

    dbSeeChanges

    Good morning all,



    I have a form which acts as a search form to find records within the database.

    The database was created in access but has since had the table upsized to SQL 2005. The Search Form was working but now I get the following error displayed.

    You must see the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column.

    The debugger takes me the the following lines of code.

    Set db = CurrentDb
    Set rcd = db.OpenRecordset("select " & _
    "IT_SupportTable.LogNumber " & _
    "FROM IT_SupportTable" & _
    " WHERE " & strWhere & ";")

    Can anyone help me with where I should be putting the dbSeeChanges.

    Many thanks,

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Is this Solved? If so, do you care to share your solution with others that read this forum?

  3. #3
    swagger18 is offline Novice
    Windows Vista Access 2003
    Join Date
    Jan 2011
    Posts
    19
    Quote Originally Posted by RuralGuy View Post
    Is this Solved? If so, do you care to share your solution with others that read this forum?
    Certainly sir,

    Set rcd = db.OpenRecordset("select " & _
    "IT_SupportTable.LogNumber " & _
    "FROM IT_SupportTable" & _
    " WHERE " & strWhere & ";",dbOpenDynaset, dbSeeChanges)

    Got the answer from another forum that I am apart of.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thank you.

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

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