About 50 results
Open links in new tab
  1. How to access values in a recordset - Stack Overflow

    Feb 18, 2016 · DAO recordsets NEVER return -1. They always return zero or some number greater than zero. The fact that ADO works differently is just not germaine to recommendations about how to …

  2. Access: Using query in VBA for recordset - Stack Overflow

    Dim rs As DAO.Recordset Dim strSQL As String strSQL = "Select field1, field2 from myTable where field1 > 30" Set rs = CurrentDb.OpenRecordset(strSQL) '... Do wahtever using rs. Is it possible to …

  3. What is a Recordset in VBA? ... what purpose does it serve?

    Dec 17, 2013 · 6 This is quite a large question. Briefly, a recordset is a selection of records from a table or query. Depending on the query used, it can be used to add, edit, delete and manipulate records. A …

  4. Access VBA: What is the difference between dao.recordset vs recordset ...

    Aug 19, 2018 · Dim rs As DAO.Recordset But if you have both the Access database engine, and ActiveX Data Objects libraries in your references (see on the right), then you must use the qualifier to …

  5. How to populate an array with recordset data - Stack Overflow

    Oct 20, 2012 · A recordset is an array, and much more versatile than a VBA array (i.e., reference by column name and not just column index). Why not just use the recordset directly? I have been …

  6. Cannot edit data in MS Access form, it says "Recordset is not updatable"

    Apr 16, 2015 · In the earlier copy, the recordset was updatable. What I found was that if I sorted the subform data and closed the form, access saved the "Order by" clause in the subform properties - I …

  7. How do I test if a Recordset is empty? - Stack Overflow

    For the record (ha!), after opening a recordset it is never necessary to check recordSet.BOF to see if the recordset is empty. This is in fact cargo cult programming. Checking recordSet.EOF is sufficient.

  8. How do I connect to a database and loop over a recordset in C#?

    Aug 4, 2008 · What's the simplest way to connect and query a database for a set of records in C#?

  9. How to run parameterized query from VBA. Parameters sourced from …

    Jun 26, 2015 · The combobox selection then drives a query to create a one-record recordset (rsProfile) containing several profile variables queried from a table of all vendor profiles.

  10. Code to loop through all records in MS Access - Stack Overflow

    May 3, 2011 · You should also look for "Filter" property of the recordset object to filter only the desired records and then interact with them in the same way (see VB6 Help in MS-Access code window), or …