ado

  1. A

    Using ADO to add data to fields with similiar name.

    I have a table, name myTable in access database in desktop\jwb.accdb. the table has more then 50 fields. the name of the fields: answer1, answer2,....answer50. And I have data in excel column A1 to A50 that I want to add to these fields. data in A1 to answer1 data in A2 to answer2 data in A3 to...
  2. V

    importing a csv into access from excel

    Hi, I have a macro in an excel spreadsheet that imports a csv file into an access table via ado. The csv is a download from sap and has 44 fields. One of the fields (Col34) in the csv is a free text. One day someone entered in sap - "Shipping 45 " OD - special loading" and this became a value...
  3. R

    Opening a database in Excel

    I am trying to open a database in excel vba. I started a macro and chose Get External Data from Microsoft Query. That populated a column with data but what I want is a database object I can use to create recordsets such as db.OpenRecordset(sMySqlString, dbOpenDynaset). The macro created this...
  4. stefankemp

    ADO recordset returning only nulls

    Hi, I am trying to query a csv file using ADO. The procedure worked fine in the past, but I have recently received a new csv file that it doesn't want to read from. The only difference I can find between the old and new csv file is that if I open the old file in Notepad, the text just wraps...
  5. ClimoC

    ADO Conn to csv - error trapping suggestion?

    How would you do this? strsql1 = "SELECT * From " & fName StatsForm.TextBox1.Value = StatsForm.TextBox1.Value & " querying " & fName & "..." DoEvents On Error GoTo oops Err.Clear If Not FPRSet Is Nothing Then Set FPRSet = Nothing With cnImportConn1...
  6. J

    How to do VBA -> LDAP -> OIM -> Oracle?

    I have several VBA applications that interface with Oracle databases. Up to now we've been using ODBC, DAO (via the DAO360.dll library) and ADO (MSADOnn.tlb) to get to them using a connection string that names the Oracle database server, the userID and the password. The oracle clients and...
  7. J

    How to do VBA -> LDPA -> OIM -> Oracle?

    I have several Access/VBA applications that interface with Oracle databases. Up to now we've been using ODBC (via Access links), DAO (via the DAO360.dll library) and ADO (MSADOnn.tlb) to get to them using a connection string that names the Oracle database server, the userID and the password. The...
  8. J

    How to do VBA -> LDAP -> OIM -> Oracle?

    I have several spreadsheet/VBA applications that interface with Oracle databases. Up to now we've been using ODBC (via Excel queries), DAO (via the DAO360.dll library) and ADO (MSADOnn.tlb) to get to them using a connection string that names the Oracle database server, the userID and the...
  9. A

    Need help related to export data from access to excel using ADO

    Hi Experts, I need help suppose Have access table with some date and I want to export to new excel file and my access table field names will be my top row in excel file. please help with vba code Regards, Amol J
  10. A

    Need help related to export data from excel to access using ADO

    Hi Experts, Please help me If I want to transfer data from excel to access using vba, where 1) I have excel sheet with Header at top row and some data below it. 2) Once I run my macro access table will get created and My excel header row will be my access field names and data will be...
  11. M

    keeping 'Current Project' as the ADO path

    I'm using ADO to make a SQL query in VBA. I don't want to have to specify the path to the database. The database I'm querying will always be the same file in which the code is found, and its location will change. But I'm not sure how to set the path to "this file." Here is a snippet from my...
  12. A

    ADO Connection question

    Hi, I have a connection between Excel and Access. From Excel, I query Access and use the Recordset method to put the data into a sheet. Can I use this to somehow Update or Edit an actual query that's in Access ? Please advise yes or no. I think its No ! Thanks, ABB
  13. Dan DeHaven

    Using ADO as the connection for a ListObject

    Using Excel 2010 I want to set the connection of a ListObjects.QueryTable to and ADO source. Under MSDN's info on QueryTable.Connection property they say that "Alternatively, you may choose to access a data source directly by using the Microsoft ActiveX Data objects (ADO) library Instead" of...
  14. S

    Output from stored procedures

    I am trying to use some stored procedures in Oracle. I've tried to use the upload-function with objConnection.Execute "BEGIN upload_from_excel(1, 2, 3 ,4); END;", but I don't know how to get any response if the query didn't run successfully. Is there a way to do this in VBA? I've found that I...
  15. stefankemp

    Return value of named constant without opening workbook

    I am importing data from multiple workbooks in a folder using ADO. But I only want to connect to workbooks where the value of a named constant within each workbook, "isTemplate", is True. Is there a way to check this value without opening the workbook? Perhaps via ADO? Or alternatively to simply...
  16. ClimoC

    Really Long ADO Filter Strings?

    'Ello Have some recordsets. Nice. A master doc connects to some csv's with the oledb text connection, dumps them all to a sheet, and simultaneously builds a 'master' recordset to do some hard crunching. Part of this is a userform that allows you to pick Fields, Operators and Values from...
  17. D

    Problems with ADO copy from one excel file to another

    Hi I am trying to use this code, but I get un error on the row datConnection.Open "DBQ=" & strDB & amp, "," & strDriver & amp, ",UID=admin," I don't fully understand the code or what is wrong, could I get help? The error says 'runtime error -2147467259(8004005} [microsoft][ODBC driver...
  18. S

    ADO SQL date criteria type mismatch

    Hi folks,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> I’m fairly new to this but have had some success working in Excel with copying of data to ACCESS.accdb tables and from ACCESS queries back to Excel. Currently I am using ADO to first copy a list of...
  19. S

    ListObjects.Add ADO

    I've tried to import data with following code With ActiveSheet.ListObjects.Add(SourceType:=0, Source:=Array("DSN=db_name; UID=user_name; PWD=pw;"), Destination:=Range("$A$1")).QueryTable .CommandType = xlCmdSql .CommandText = Array("SELECT * FROM table") End With...
  20. S

    Change Access Entry using Excel VBA

    Hi guys, How do I change a certain entry in an Access table using Excel VBA? Thanks

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