connectionstring

  1. A

    Connectionstring not being set properly by code - query data source not changing

    Hi I have two excel files stored in Dropbox - one a database that is not opened by users and the other a tool that runs two query tables from the database and is supposed to refresh the query tables on auto_open by setting the connectionstring to the users filepath to find the data source -...
  2. azizrasul

    Error on Stored Procedure VBA code

    I have the following code which errors as given below. Calling line is Call ObtainPremiumSummaryData("3000724", #1/7/2017#, #1/7/2016#) Public Sub ObtainPremiumSummaryData(strCustNo As String, dteClaimYearStart As Date, dtePreviousYearStart As Date) Dim cnn As New ADODB.Connection...
  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. E

    Correct connection string???

    Hi all, I have a few Pivot tables which are connected to some Access queries. I would like to know if the connectionstring is correct? Environment: Windows 7 Access 2010 - multi user database Excel 2010 - multi user file Here are an example of a connectionstring...
  5. ClimoC

    Recordset = ConnectionString, preserving Locktype problem

    Hello I've followed the MSN brief on my problem as best I can, but still have issues! I understand why it does it and why it happens, but can't seem to set my RecordSet and preserve optimistic locktype and dynamic cursor. If I understood it (probably not) correctly, I need to Open the...
  6. B

    Code to Change Connection String

    Current Connection String is as follows: DSN=MS Access Database;DBQ=C:\Needs Based Budget\NBB00_13-14.accdb;DefaultDir=C:\Needs Based Budget;DriverId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeout=5; I have an application consisting of an excel 2007 workbook and access 2007 database. I...
  7. S

    VBA Oracle connection

    I connect to an Oracle database by the code below. Is it possible to improve the code? What could a function which returns data based on a ID in a Excel sheet look like =getName(id)? Is it bad syntax to make a function with a sql string-parameter like =getValue("SELECT * FROM db WHERE Id = id")...

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