Open a Microsoft Access file using LV

Hi, 
    When my VI finishes executing I would like it to Open up a Microsoft Access file and delete an Excel Table.  I have gotten it to delete the Excel Table, however, it will not open the Access file.  I have tried using Open File and I have tried open/create/replace, but they are not working.  I am almost positive I am putting the directory and file extentsion right as well.  I am using LV 6.1.  
Thanks 

I have recently added data-basing using labview and access.  I am using labview 7.0 and the DB toolkit.  I have no problem connecting to access using the jet 4.0 engine, where I can read modify and edit access data.  What are you trying to delete? a table, remove entries or delete the entire file itself.  There are two ways to connect to access, using an activeX control or through ODBC.  I have never used activeX for access but have used it for excel, this was not too difficult but there is a lot of methods and properties to wade through to get things working.  I might be able to help you, but will need a little more info on what you need to do with access.  Using the DB toolkit and ODBC, you will not need access on the machine to use the database, which is a nice option if you plan on distributing the application.  I am a DB novice but have been learning fast, I think Mike Porter knows alot about labview and database connectivity, hopefuly he will help out here.
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA

Similar Messages

  • How do I open a microsoft word file using Teststand 2010?

    Hi All,
    I am currently using Teststand 2010. I need to do a simple task, at least I thought it was simple. I want to open a microsoft word file using Teststand 2010. I thought the using the "Call Executable" would be the first step, but I am not sure how to set it up. Any help would be greatly appreciated.
    Thanks,
    WJ

    Hello,
    You will actually need to use an ActiveX step to use Microsoft Word. I found this forum post with a similar question and an example. I opened the example and saved it to TestStand 2010 to reattach here.
    Note: you will probably need to modify the "Open Document" step to make sure the FileName of the Word document matches the real file location.
    Taylor B.
    National Instruments
    Attachments:
    TestStand MS Word.zip ‏13 KB

  • How can I open encrypted Microsoft access files on a mac?

    How can I open an encryted Microsoft access file on an iMac?

    As Office for Mac doesn't include Access, I'm not at all sure you can.
    You could try Open Office, NeoOffice or Libre Office (all free, open source) and see if their database applications can do it.

  • How do I open a pdf stored in a Microsoft Access database using Visual Basic studios 2012

    Currently I am unable to find a valid method of being able to open a pdf stored in a Microsoft Access database using Visual Basic studios 2012. I've tried displaying the entire database on a form, but when I do this all the other columns show up with
    the correct data besides the one containing the pdf's, it just displays <binary data> in each row down the column. I also tried another method with which you use the database as a dataset and can drag and drop the rows and columns into the form, which
    again works for all the other columns besides the one containing the pdf's but this time I'm unable to interact with the column  at all. 
    Not too sure if this is in the correct place, but any answers or help would be appreciated. Cheers.

    Alex,
    This forum is dedicated to Project and Project Server. You might get better response, if you post to a Visual Basic forum. Here are couple I could find. 
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vbgeneral%2Cvblanguage&filter=alltypes&sort=lastpostdesc
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • How to open .drw or .prt file using swing?

    Hi Everyone,
    I am new to java programming n I m facing a problem in swing.I want to open a perticular drawing file using Java program but the condition is,it should open in the same window.Now,I have managed to open normal txt files n .doc files in the same window using JFileChooser and IO programming.But I dont know what it takes to open a .prt or a .drw file using the same program.
    Can you guys plz help me out in this?I think,it is not compatible to open such files...but how to make it compatible then?
    I m posting the code here...plz check it n help me out as soon as possible...Thank you very much......
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    public class FileChooseApp1 extends JFrame
    implements ActionListener
    JMenuItem fMenuOpen = null;
    JTextArea fTextArea;
    File fFile = new File ("default.java");
    FileChooseApp1 (String title) {
    super (title);
    Container cp = getContentPane ();
    // Create a user interface.
    cp.setLayout ( new BorderLayout () );
    fTextArea = new JTextArea ("");
    cp.add ( fTextArea, "Center");
    JMenu m = new JMenu ("File");
    m.add (fMenuOpen = makeMenuItem ("Open"));
    JMenuBar mb = new JMenuBar ();
    mb.add (m);
    setJMenuBar (mb);
    setSize (400,400);
    public void actionPerformed ( ActionEvent e ){
         boolean status = false;
         String command = e.getActionCommand ();
         if (command.equals ("Open")) {
         // Open a file
              status = openFile ();
         private JMenuItem makeMenuItem (String name) {
         JMenuItem m = new JMenuItem (name);
         m.addActionListener (this);
         return m;
         boolean openFile () {
         JFileChooser fc = new JFileChooser ();
         fc.setDialogTitle ("Open File");
         // Choose only files, not directories
         fc.setFileSelectionMode ( JFileChooser.FILES_ONLY);
         // Start in current directory
         fc.setCurrentDirectory (new File ("."));
         // Set filter for Java source files.
         // fc.setFileFilter (fJavaFilter);
         // Now open chooser
         int result = fc.showOpenDialog (this);
         if (result == JFileChooser.CANCEL_OPTION) {
         return true;
         } else if (result == JFileChooser.APPROVE_OPTION) {
         fFile = fc.getSelectedFile ();
         // Invoke the readFile method in this class
         String file_string = readFile (fFile);
         if (file_string != null)
         fTextArea.setText (file_string);
         else
         return false;
         } else {
         return false;
         return true;
         } // openFile
         public String readFile (File file) {
         StringBuffer fileBuffer;
         String fileString=null;
         String line;
         try {
         FileReader in = new FileReader (file);
         BufferedReader dis = new BufferedReader (in);
         fileBuffer = new StringBuffer () ;
         while ((line = dis.readLine ()) != null) {
         fileBuffer.append (line + "\n");
         in.close ();
         fileString = fileBuffer.toString ();
         catch (IOException e ) {
         return null;
         return fileString;
         } // readFile
         public static void main (String [] args) {
         // Can pass frame title in command line arguments
         String title="Frame Test";
         if (args.length != 0) title = args[0];
         FileChooseApp1 f = new FileChooseApp1 (title);
         f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         f.setVisible (true);
         } // main
         } 

    well....the issue is,by the above mentioned code,I m able to open all text files like .txt or .doc....but I want to open a file having an extension .eprt or .easm.....these are all drawing related files....how to do that?
    what exactly happens when a text file is opened in java...do I need to register these drawing related files somewhere?if yes,wher should I register them?
    Thanks a lot.....

  • Opening a template indd file using java API

    How do I open a template indd file using java API and use it for laying out graphics and text ?
    Thanks in advance

    Sample code:
    VariableType vtDocument = myApp.open(VariableTypeUtils.createFile("c:\\myfile.indd"));
    myDocument = DocumentHelper.narrow(vtDocument.asObject());
    Thanks
    -arun

  • On iPad can I open a Microsoft word file with apple pages app?

    On iPad, can I open a Microsoft word file with apple pages application?  If so how do I perform this activity?

    Yes you can open Word files. If it is an email attachment you can simply tap and hold down on the icon and select "open in" and then select Pages - as long as you have the Pages app on the iPad.
    Where is the file on your iPad or how do you want to move it to the iPad?

  • Login codes using java database (validates with Microsoft Access File)

    hi all pro-programmer, can you show me the code to login with the username and password using java database. When the user enters the username and password in the login page then it will go to the requested page. may i know how to do it?

    no one will give you complete code.
    i'll lay out the pieces for you, though:
    (1) start with a User object. give it username and password attributes.
    (2) write a UserDAO interface with CRUD operations for a User object.
    (3) write a UserDAOImpl for your Microsoft Access database
    (4) write an AuthenticationService interface
    (5) write an implementation of the AuthenicationService that works with the UserDAO to authorize a User.
    Use a servlet to accept request from your login page and pass it off to the service. Voila.
    PS - Here's skeleton to start with. UI, servlet, and controller are your responsibility:
    package model;
    public class User implements Serializable
        private String username;
        private String password;
        public User(String u, String p)
            this.username = u;
            this.password = p;
        public String getUsername() { return username; }
        public String getPassword() { return password; }
    public interface UserDAO
        public User findByUsername(String username);
        public void saveOrUpdate(User user);
        public void delete(User user);
    public class UserDAOImpl implements UserDAO
        private Connection connection;
        public UserDAOImpl(Connection connection)
            this.connection = connection;
        public User findByUsername(String username)
            String password = "";
            // logic for querying the database for a User
            return new User(username, password);
        public void saveOrUpdate(User user)
            // save or update a User
        public void delete(User user)
            // delete a User
    public interface AuthenticationService
        public boolean isAuthorized(String username);
    public class AuthenticationServiceImpl implements AuthenticationService
        private UserDAO userDAO;
        public AuthenticationServiceImpl()
            // Create a database connection here and the UserDAO, too.
        public boolean isAuthorized(String username)
            boolean isAuthorized = false;
            // Add logic to do the database query and decide if the username is authorized
            return isAuthorized;       
    }

  • I cant view my microsoft access files in MBP

    Hey guys i ma a switcher n i ve got the Microsoft office for MAC but it doesnt include Access Database.. How can i view my Access files in MAC..
    Please Help!!
    Kind Regards
    Singh

    I don't think you can. There is no version of Access for the Mac. Your choices are to 1) run Windows on your Mac with either parallels or bootcamp or 2) use a database program for Mac (Filemaker strongly recommended - works on Mac and PC).
    If you choose Filemaker you can directly import Excel files which I think you export from Access. You can drag your Excel file onto your Filemaker icon and if you have Excel column headers it will automatically create and populate a db table for you. Filemaker is a serious high functionality db and is easy to use.
    You can download a free 30 day trial - give it a go.
    Neil

  • Can I open the (.squ) sequence files using NI test stand 4.0 version?

    I have the sequence files created using ATETool Kit test Executive. But I have NI 4.0 test stand. I want to open the sequence files using NI 4.0 test stand. Can i do that?

    Hi,
    I am not familiar with ATETool kit Test Executive, but I doubt NI TestStand will open this. As you have both, have you tried it?
    TestStand does have a conversion tool for converting NI TestExecutive sequence files into TestStand sequence files.
    Maybe you could write a conversion tool to make the conversion for you if you have many ATETool kit Test Executive files.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I open a password protected file ( using automation objects : oAVDoc, CCAcroPDDoc ) ?

    HI,
    I am using adobe automation and wanted to open a password protected file and remove its password and save it ?
    Is there any way to do so in vc++ ?
    ( using CCAcroApp, CCAcroAVDoc, CCAcroPDDoc )
    thanks & regards,
    ~ Rudresh

    Post your questions in the forum for Acrobat SDK.

  • Why can I access files using ubuntu live cd but not my mac?

    Hello,
    Every since I have upgraded to Lion then to Mountain Lion I have had nothing but trouble with my mac crashing and not being able to repair the harddrive. I use time machine with an external hard drive to back up everything (also using online server to back up things as well).
    My issue is that disk utility never works ( ever ) and when I have trouble the hard drive and my external hard drive always show up grayed out and disk utility says the disk is broken and cannot be repaired. Which the disk are fine because I can access them using a ubuntu live cd no problem.
    My main question is how is this not being addressed by apple? This is clearly a bug - there is nothing wrong with my external harddrive or my macs hardrive - yet when I restart my mac I fear it will never start again(in its current state) and the disk utility just doesn't work the only answers I ever get is the hard drive is bad (which is not the case being I can access it with the ubuntu - or even reinstall everything and it works fine etc...)
    There is some major bugs and I can say I never had these problems losing my data with a windows machine (though I am not a big windows fan). Apple why doesn't the disk utility work?
    Also why when I update my mac and the mac restarts itself does it not eject my external hardrive - also why if you don't eject the harddrive it ruins the data on the hard drive or at least makes it grayed out or corrupt in my mac - but I can copy the files in ubuntu and put them back then it works just fine? These are serious issues and I am really shocked that the mac community would stand for this kind of thing - I am not the only one with these issues I see thousands of others with the same issues so when are they going to be fixed?
    If what I am saying is unclear - just google mac hardrive cannot be repaired - and set the time for the last month you will see. Also to those who have these troubles simply use a ubuntu live cd - copy all your files to the home folder then place them back to where the reside and mac will reconize them again - worked every time for me so far no thanks to disk utility.

    Your booting off a Ubuntu disk which has it's own operating system on it and on another medium that is free of issues, unlike your current hard drive running OS X 10.8.
    I really don't advise you directly installing Linux on a Mac as it's much more complicated that it appears. Also I don't advise you using Linux anything to tinker with a Mac unless you really really know what your doing.
    Since your Mac's software is broken you don't know currently and shouldn't be using Linux as a band-aid solution to your problem.
    My suggestion is you FIX your primary boot drive.
    disk utility says the disk is broken and cannot be repaired
    This calls for a complete zero erase and install of the affected area, if it's just the Macintosh HD partition then fine, it's a hold command r boot into Recovery HD and use Disk Utiltiy there to Erase with the middle secure erase feature (important) and then a reinstall of OS X 10.8 from Apple's servers over a fast Ethernet connection.
    If your GUID partition table or Recovery HD is affected, then you need to command option r boot into Internet Recovery and select the entire hard drive for the same zero/middle erase proceedure, unless you have a older MacBook Pro then you need to use option key boot off the 10.6 disks and use the Secure Erase/ Zero on the entire drive, install 10.6, then update to 10.6.8, then AppStore upgrade to 10.8 again.
    You need to only restore user files into same named accounts from a Storage Drive backup, do not use Migration or Setup assistant as your TimeMachine drive data is likely corrupted. This means all new softwre installs from original sources as well.
    Read through my many User Tips, you'll be fixing your own machine in no time.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/?p er_page=50
    also why if you don't eject the harddrive it ruins the data on the hard drive or at least makes it grayed out or corrupt in my mac
    Windows and Linux also has to "safely remove hardware" or "unmount" before ejecting a drive as well or it corrupts the data.
    I guess this feature came about so one can disconnect a drive without having to physically remove it and wear out the ports doing so.

  • Executing Microsoft access macros using java

    Hi Everyone,
    I hava an application in microsoft access,in which many macros which extract data are there.I want to know is there anyway that I can execute the macro written in microsoft access using java.
    Can anyone please answer the above.
    Regards,
    Rakesh.

    rakbha wrote:
    I hava an application in microsoft access,in which many macros which extract data are there.I want to know is there anyway that I can execute the macro written in microsoft access using java.
    I am rather certain that that is not possible via the ODBC driver and thus not possible via JDBC.
    There is certainly an OS API that will allow that but accessing those is not a standard part of the Java API so it would require a JNI solution (yours or someone else's) or an application that allows that access.

  • Opening Nikon D600 NEF files using PhotoShop CS4 11.0.2 and ACR 5.7.0.213

    Hello,
    I've just bought a Nikon D600.
    I have Photoshop CS4 11.0.2 and ACR 5.7.0.213. 
    With these versions, I'm unable to open the D600 NEF files.  I get the following message:
    "Could not complete your request because it is not the right kind of document"
    Yet I can view the NEFs in other software that pre-dates the D600, e.g. FastStone Image Viewer 4.6.
    Does anybody know if I can get a plug-in from Adobe for PS CS4 that allows me to edit D600 NEFs?
    Many thanks for any help.
    Regards,
    Aisling

    Either upgrade to Photoshop CS6 or download the free DNG Converter and covert your NEFs to DNG.

  • Opening links to pdf files using safari

    While using safari and clicking on a link to a pdf file, a new page loads that is just totally black. If I use the firefox browser and click on the same link, a new page opens and displays the pdf perfectly.
    While using safari, if I choose to download the pdf file to desktop, and then click on it, it opens fine using preview.

    Back up all data before making any changes. Please take each of the following steps until the problem is resolved.
    Step 1
    If Adobe Reader or Acrobat is installed, and the problem is just that you can't print or save PDF's displayed in Safari, you may be able to do so by moving the cursor to the the bottom edge of the page, somewhere near the middle. A black toolbar should appear under the cursor. Click the printer or disk icon.
    Step 2
    There should be a setting in its preferences of the Adobe application such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected.
    Step 3
    If you get a message such as ""Adobe Reader blocked for this website," then from the Safari menu bar, select
              Safari ▹ Preferences... ▹ Security
    and check the box marked
              Allow Plug-ins
    Then click
              Manage Website Settings...
    and make any required changes to the security settings for the Adobe PDF plugin.
    Step 4
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
              Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens by pressing command-V, then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari.
    Step 5
    The "Silverlight" web plugin distributed by Microsoft can interfere with PDF display in Safari, so you may need to remove it, if it's present. The same goes for a plugin called "iGetter," and perhaps others—I don't have a complete list. Don't remove Silverlight if you use the "Netflix" video-streaming service.
    Step 6
    Do as in Step 4 with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari.

Maybe you are looking for

  • Log Error : Invalid Input Parameter %s for every SAP B1 Client

    Hi Everybody, in my company we have performed SAP B1 upgrade from 2007A to 8.81 PL07, in two steps upgrading first to PL04. Everything is working fine for all our clients, we are able to post and work normally with the system. The only annoying probl

  • Can an iTunes library on a has device be shared by two mac computers?

    I have an iTunes library on a has device and would like to share or use the library on two macs. Is this possible?

  • Error message on unclicked Radio Button

    Hello all, I was wondering how I can generate a unique error message on a required radio button on my form. I have designated the radio button as required already, but instead of the generic "missing fields" error message I would like it to generate

  • Error while creating WS link on a button

    Post Author: rahulsarma CA Forum: Nsite I am trying to make a WS link to NSite on a button. But i get this message "Can not save web-service credentials to database. Empty key".

  • Silverlight dialog box for update

    I keep getting the update dialog box for silverlight. It only give option to update or remind later. I do not want the up date and do not want to keep seeing the dialog box pop up. How do I stop this.