ado

  1. M

    Using ADO to Save, Recall and Update records in Access using Excel 2003

    I'm not too familiar with Access and linking to it from Excel so thought that on a recent project I would try and build up my skill set and use ADO, plus the use of a database in this instance was appropriate. So far, I have figured out how to Recall a record that matches a certain condition...
  2. bs0d

    VBA to Add (Save) & Remove a Query in an MS Access DB within Excel with ADO?

    I'm creating a workbook to query data from an Access database. Part of the process to get the data I need, requires creating one query (A), and then creating a query (B) to the query (A). I've not come across the need to save a query (from Excel) to Access before. I'm sure this can be done, can...
  3. bs0d

    VBA ADO Query Run-time Error: System Resources Exceeded

    I'm running an ADO query through Excel to insert up to 50k rows into a table. The query uses dSUM to get a running total for items by date, so it's likely that it is "calculation heavy". Even running directly in Access, it takes a moment to complete. When running it in Excel however, I get the...
  4. S

    Export Named Range to SQL Databse with VBA

    I have the code (which works sometimes) to export an Excel named range to an SQL Database existing table, which I have pasted below: Sometimes it works, sometimes it does not. Error is TempRange is not found by VBA (Object not found). I have no idea why it gives error randomly. Pl help...
  5. G

    Accessing ADO

    Hello guys, I am learning VBA by myself and I saw some codes that have the expression provider in it, like this one Connection.Provider = "Microsoft.ACE.OLEDB.12.0" I can not understand what is the function of the Provider in this case and where I can find the code in the...
  6. A

    SQL data connection in Excel - update SQL tables using table in Excel

    I created a SQL query that gathers information for users to determine which items in our system need to be inactivated. The user receives an Excel workbook that has a table with a data connection to the SQL Server database that pulls in the information they need (via stored proc). I want to...
  7. bs0d

    ADO Insert Query

    I've managed to query my MS Access database through Excel using the ADO method. I'd like to learn how the syntax differs for an INSERT query; specifically when inserting values from a form. Here is the code I use for a SELECT query: Set myConnection = New ADODB.Connection Set myResults = New...
  8. L

    Moving data from a Cellset to a Worksheet

    Hi, I'm querying an OLAP source using ADO from VBA with code similar to below : Set rs = New Cellset With rs .Open sQry, cnn End With Usually I dump the Cellset into an array and then dump to the worksheet in one pass. This doesn't work with a big query (1m rows+) due...
  9. BrianMH

    Calling ADO Experts (any MVPs about?) - Issues with disconnections

    Hi everyone, I don't use ADO much but I've inherited something that is using ADO and I've had a few problems. Our network infrastructure isn't the greatest here and some times the connection to our shared drives momentarily drops. It doesn't unmap the drives or anything but we get an error in...
  10. N

    ado in excell

    I want to learn to use Excel ado, check if it is possible to introduce a book or instructional videos Thank
  11. K

    ADODB: Issues with a WHERE condition in a SELECT

    Hi, I'm having issues with the following code: Dim date1 as Date [..] date1 = date - 20 '20 days ago oCm.CommandText = "Select * From mytable where resource = """ & resourcename & """ AND " & _ "date1 >= #" & date1 & "#" Set rs = oCm.Execute(iRecAffected) this statement is supposed to...
  12. ClimoC

    Which is quicker/more efficient? Lots of 'If Not IsNull()'s or setting Default Values = ""?

    In my access, I've had to set a lot of fields to have default properties to avoid runtime errors (and since it's Excel based ADO objects, I have no Nz() function) But I also have a bunch of text and memo fields, which when I just wrote a 'duplicate record' function, was returning the 'Invalid...
  13. M

    Error when field exceeds 255 chars using ADODB.Recordset with ACE Excel 8 adodb version 6.1

    I've created a tool that works creating Excel subsets worksheets of lager Excel worksheets. My OS is windows 7 Here is the connection info: Provider=Microsoft.ACE.OLEDB.12.0;" & _ "Data Source=" & SourceXLSX & ";" & _ "Extended Properties=""Excel 12.0 Xml;HDR=YES;IMEX=1""" This has worked...
  14. F

    transferring date formatted cells through ADO connection to another sheet

    I cannot copy date formatted cells (that actually contain dates, some contain text) from one sheet to another through an ADO connection. I am not interested in using excel functions, only VBA. Thank you!!! [VBA Code] ws3.Cells(row, 2).Value = rs2.Fields.Item("Name") ws3.Cells(row, 3).Value =...
  15. ClimoC

    Sense check of the way I've gone about this please? - MsAccess ADO Multi-User system

    Howdy I've built a little app to reside on our shared-drive, which is designed to store relatively few records, and accessed by probably not more than 4-6 people at any single one time. Only one record can be Added/Edited/Deleted at a time (there are no batch delete/edit/add functions) Here's...
  16. D

    SELECT INNER JOIN query from multiple AS400 data sources with ADO?

    My current Access + Excel solution: I use an Access database to create two pass through queries. Each pass through query selects records from different AS400 data source. I then use a third (regular... not pass through) query to INNER JOIN the two tables on a common field. The records returned...
  17. T

    Excel VBA Connection to Access

    Hi All. I currently have a workbook that has VBA functions that calculates values by looping through large amounts of data in a few large excel sheets. I want to transfer the data from these sheets into Access and then bring data into the VBA code via an array from the data in Access rather than...
  18. J

    ADO recordset query quandery locating duplicates

    I am having trouble setting up a query for a recordset that will list duplicates for an automated process to clean up. I am using Excel 2010 with Microsoft ActiveX Data Objects Recordset 6.0 Library and Microsoft ActiveX Data Objects 6.1 Library as references. So far, I have chopped the query...
  19. G

    Pivot table created from ADO recordset doesn't display Row or Column field data unless there is a Datafield

    I have created a pivot table from an ADO recordset using VBA. The pivot table is created and everything seems normal. However when I start adding row or column fields, the title cells display in the sheet, but not the individual records. They records will not appear until I add a datafield to...
  20. B

    Much ADO about text files

    Am at my wits' end. what is wrong with the code below? It is giving me an error "ADODB Connection --> Operation is not allowed when the object is closed." Public Sub GetTextFileData() Dim cn As ADODB.Connection, rs As ADODB.Recordset, f As Integer Dim strSQL As String, StrFolder As String...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top