MS Access 2013 Open ODBC Database using VBA - ms-access-2013

I would like to know how to open the "ODBC Database" option available under EXTERNAL DATA tab similarly to opening "Linked Table Manager" option using VBA.
This is what I use to open Linked Table Manager window using VBA:
DoCmd.RunCommand acCmdLinkedTableManager
Is there a simple way to do the same for ODBC Database window?

Related

How to added the SQL query used generate the excel file in DATAGRIP IDE?

I'm a SQL developer user, usually, I extract data from Oracle database and store them into excel files on a daily basis, the nice thing about Oracle's SQL Developer when exporting the file into excel file, you get two worksheets one for your data, and another worksheet contain the SQL query that used to generate this report.
Now I'm using DATAGRIP IDE from JetBrains, I noticed when I export the file into excel sheet I only get the data and I don't the SQL query that I used to generate this excel file.
is there any way to add the SQL query to the exported file?
There is no possibility to include the SQL tab automatically. But every grid has it's own "View Query" option where you can see and copy the needed SQL.
To have this tab, please create a feature request here: https://youtrack.jetbrains.com/issues/DBE

How can I find the name of a Windows OLE object?

I'm trying to use the Win32::OLE module to control a Windows application. I know that the developers of the application provide an OLE Object to control it, but I don't know the name of the object.
On an old version of the program, I managed to reference the object in Perl by the following line:
$ref = new Win32::OLE 'object.name'
but the new version of the program has a different object name.
Is there any way of checking which OLE objects exist for applications that are currently running on Windows?
Win32::OLE comes with an OLE browser. Keep in mind, it only works with Internet Explorer and only when you load the HTML document from your local system.
Of course, you could also install Microsoft's development tools and get the native OLE/COM Object Viewer:
You can also find the names and components of Win32::OLE objects for other products (Excel, Word) by starting the product, then typing Alt-F11. This should open the VBA editor. Once in the VBA editor, type F2 (or use the pull-down menu from View) to start the Object Browser. This will list the objects relevant to that product. Here is an example from Excel.

Windows 7: Right click on file and run custom Excel VBA script

I wrote a macro in Excel VBA that can scrape files with an .f06 extension for certain data and then creates a spreadsheet that summarizes the data.
It is inconvenient to have to find the Excel workbook, open it, run the macro, & select the .f06 file to generate this summary.
I prefer to right-click on the .f06 file directly and have an option called 'scrape' that I could select and then it would run the code automatically.
1) Is this possible?
2) Can I use the existing macro-enabled Excel spreadsheet as the referenced code? Or do I need to re-write it in another language?
I am using Windows 7 Enterprise SP1 if relevant.
Thank you.
This is possible, but if you're on a company computer, I doubt that you'll be able to do some of the required steps.
1) write a VBScript for your macro according to the following guide:
http://wellsr.com/vba/2015/excel/run-macro-without-opening-excel-using-vbscript/
2) Launch the VBS you wrote in Step 1 from the right click menu, according to the following guide:
http://www.visualbasicscript.com/Launch-vbs-from-the-rightclick-menu-advanced-m32062.aspx
Best of luck!

More then one SQL Windows with the same session in PL'SQL Developer

I'm new to PL/SQL Developer and have session problems.
Everytime I open an SQL file, Developer opens a new session to the database.
I have a limit of 2 sessions, so I can't open more then 2 SQL files at the same time.
I would like to open as many SQL files as I want with the same session.
Does PL/SQL Developer have settings for this somewhere?
I couldn't find it in Preferences but I hope there is one.
Thanks!
In the menu Tools/Preferences "Oracle Connection" chose "Session Mode" Single session or Dual session.
And restart plsql developer.

Export table dump using SQL DEVELOPER

I need export table dump using SQL DEVELOPER
I do: View->DBA then right click on data pump and then data pump export wizard
In opened export wizard window, I choose Tables type, then click next and in second step, there are not displayed any tables:
Though, I have several tables in current connection (under this user).
What is problem here? why I cant see table list for exporting?
SQL DEVELOPER version: 4.0.3
Click the 'Lookup' button.
By default it will export all tables for your user. Use this page if you only want to export certain tales.
Click the 'More' button if you want to browse by user.

Resources