Results 1 to 4 of 4

Thread: How to compare recordsets in access vba

  1. #1
    Join Date
    Feb 2009
    Posts
    40

    How to compare recordsets in access vba

    I am trying to create a report that uses a public varible to update the reports recordset. I have 2 tables, parent categories and child categories relating to products for an online shop. But, at runtime the report opens as if there is no recordset. What am I doing wrong?

  2. #2
    Join Date
    Oct 2008
    Posts
    38

    Re: How to compare recordsets in access vba

    The Recordset property returns the recordset object that provides the data being browsed in a form, report, list box control, or combo box control. There are different types of DAO recordset, with different methods. When you OpenRecordset() on a query or attached table, Access defaults to a Dynaset type (dbOpenDynaset). When you OpenRecordset() on a local table, it defaults to a Table type (dbOpenTable.)If a form is based on a query, for example, referring to the Recordset property is the equivalent of cloning a Recordset object by using the same query.

  3. #3
    Join Date
    Dec 2008
    Posts
    21

    Re: How to compare recordsets in access vba

    Changing a form's Recordset property may also change the RecordSource, RecordsetType, and RecordLocks properties. For recordsets based on queries, SQL statements, and attached tables, the RecordCount property returns the number of records accessed so far. Also, some data-related properties may be overridden, for example, the Filter, FilterOn, OrderBy, and OrderByOn properties.

  4. #4
    Join Date
    Apr 2008
    Posts
    142

    Re: How to compare recordsets in access vba

    I know how to do it in queries, but I think I need to use VBA because i am firstly using user selected fields, When you first OpenRecordset(), Access grabs the first record, and keeps processing your code while the others load. So, if you test RecordCount immediately after you OpenRecordset, you typically get 0 (from a form) and secondly, I am not checking for duplicates, I am basically going through a list of transactions to find any returns.

Similar Threads

  1. compare 2 spreadsheets like recordsets? possible?
    By jacDaRippa in forum Windows Software
    Replies: 1
    Last Post: 14-01-2012, 06:35 PM
  2. Compare HD+ vs FHD
    By Bon-hwa in forum Hardware Peripherals
    Replies: 4
    Last Post: 12-09-2010, 07:12 AM
  3. Beyond Compare for Mac OS X
    By Gillian Anderson in forum Windows Software
    Replies: 5
    Last Post: 27-05-2010, 10:40 AM
  4. How to Compare Two Strings in C
    By Pratim in forum Software Development
    Replies: 3
    Last Post: 28-12-2009, 11:10 AM
  5. Compare T1 and DSL Connections
    By BakshiK in forum India BroadBand
    Replies: 3
    Last Post: 19-06-2009, 09:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,025,680.84037 seconds with 17 queries