Problems controlling Microsoft Access with ActiveX

I have done quite a bit of searching on this topic, and have found several answers that are close, but do not address my actual problem.
I would like to use ActiveX to control Microsoft Access, specifically to create new database files without having to copy a blank file I have stored somewhere. I also can't stand it when I can't get something to work, so this is now a personal thing too.
Anyway, when I run a simple VI to open the creatable reference Access._Application, I get the error: "Error 3005 occurred at Automation Open: Object specified is not creatable in Access.vi". I have tried a lot of the common answers to this problem, like browsing for the library in the ActiveX window, and trying to register it with regsvr32, but the file is msacc.olb, which cannot be registered with regsvr32.exe. I have attached the original VI and I have tried this on 3 different PCs, all with slightly different installs of Office, but all with Access 2007. If anyone can help me figure this out, I would greatly appreciate it.
Thanks 
Eric
"When I see an adult on a bicycle, I do not despair for the future of the human race."
-H.G. Wells
Solved!
Go to Solution.
Attachments:
Access.vi ‏6 KB

Your vi gave the same error on my machine.  Then I deleted the Access._Application reference, right-clicked on the reference input and selected Create Control.  Then I changed the Active-X Class by browsing to my computers version of the reference ("Access._Application.12").  The same vi ran without error.
The class still shows as Access._Application, which indicates that there may be an incompatibility which is not visible.  
When and activeX node fails to run when copied from any other machine, it is recommended to Replace each node that generates the error and reselect the properties and methods.
Michael Munroe, ABCDEF
Certified LabVIEW Developer, MCP
Find and fix bad VI Properties with Property Inspector

Similar Messages

  • Microsoft Access with Unicode

    Hi,
    I recently upgraded my website from CF5 to CF9 running on a virtual server. Below are the specs.
    CF Version: 9,0,0,251028
    Edition: Enterprise
    Operating System: Windows Server 2008
    My old code worked fine except that certain queries were running slow. My hosting provider suggested that I change the driver from "Microsoft Access" to "Microsoft Access with Unicode." As suggested, it did make things much faster. However, there were some pages on my site that didn't work. I did some research and found I had used two "reserved" words for table names that caused the pages to fail when using "Microsoft Access with Unicode" as the driver. Oddly enough, the pages worked fine with the regular "Microsoft Access" driver.
    I am now down to just one error left that I cannot resolve. I get the following error ONLY when using the "Microsoft Access with Unicode" driver.
    Error Executing Database Query.
    Query Of Queries runtime error.
    The select column reference [GetList.ItemNo] is not found in table [GetList].
    This is the code it is referring to.
    <!--- Use QofQ to join queried records against cart data --->
    <CFQUERY NAME="GetProducts" DBTYPE="query">
      SELECT
      GetList.ItemNo AS ItemNo,
      GetList.Item AS Item,
      GetList.Grades AS Grades,
      GetList.Price AS Price,
      GetList.OrderQty AS Quantity,
      (GetList.OrderQty * GetList.Price) AS ProductSubTotal
      FROM GetList
    </CFQUERY>
    Is there an issue with "Microsoft Access with Unicode" not playing nicely with Query Of Queries?
    I would greatly appreciate any help with this issue.
    Thanks,
    Steve

    THANK YOU!  THANK YOU!  THANK YOU!
    I never noticed that I had included the column "ItemNo" more than once (as you can see below). I removed the extra and it worked perfectly!
    Thanks again!
    Steve
    <cfquery name="GetList"
    DATASOURCE="#request.ds#"
    USERNAME="#request.dsuser#"
    PASSWORD="#request.dspass#">
    SELECT
    o.OrderID,
    o.OrderDate,
    o.ShipState,
    o.ShipCountry,
    o.TaxExempt,
    o.PromotionalCode,
    oi.ItemNo,
    oi.OrderQty,
    oi.Price,
    p.ItemNo,
    p.Item,
    p.Grades 
    FROM Orders o,
    OrdersItems oi,
    Products p
    WHERE o.OrderID = #ATTRIBUTES.OrderID#
    AND oi.OrderID = o.OrderID
    AND p.ItemNo = oi.ItemNo  
    </cfquery>

  • How can I edit data in Microsoft access using ActiveX

    I've tried to modify Read Access DB with ActiveX to edit an entry in my database, but I get the following error
    Exception occured in DAO.Field, Update or CancelUpdate without AddNew or Edit..

    Did you try to do the same thing in LabVIEW (the same order, after you have the right reference to the recordset). I know this kind of problem from VB too. I didn't try it in LV but I supposed it should be the same.
    Let me know if it doesn't work.

  • More on a very strange problem in microsoft access

    Hi,
    I wish to describe this problem futher. I have a table named test, the table has a field named "content" and it's a memo type. I try to insert some strings in it, many strings work fine except when I insert this string
    client for updates
    I do some testing, event
    t for updates cannot be inserted in it.
    Can anyone tell me what happened?
    With my best,
    Zike Huang

    I just created a table in Access 2000 with a memo column and inserted the string "client for update" into it. NO PROBLEM. It's your code.
    Here's the Java I used to do it:
    import java.sql.*;
    public class MemoInsertTest
        public static void main(String [] args)
            try
                if (args.length > 1)
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                    String url = "jdbc:odbc:DRIVER={Microsoft Access Driver (*.mdb)};DBQ=c:\\Software\\Java\\Forum\\MemoInsertTest.mdb";
                    Connection connection = DriverManager.getConnection(url);
                    String sql = "INSERT INTO DOCUMENTS(SUBJECT, CONTENT) VALUES(?,?)";
                    PreparedStatement statement = connection.prepareStatement(sql);
                    statement.setString(1, args[0]);
                    statement.setString(2, args[1]);
                    int rowCount = statement.executeUpdate();
                    System.out.println("# rows inserted: " + rowCount);
                    statement.close();
                    connection.close();
            catch (Exception e)
                e.printStackTrace(System.err);
    }I created a table in Access with this schema:
    CREATE TABLE DOCUMENTS
       DOCUMENT_ID AUTOINCREMENT,
       SUBJECT     VARCHAR(80),
       CONTENT     MEMO,
       PRIMARY KEY(DOCUMENT_ID)  I'm running JDK 1.4.1 on Windows XP Professional.
    I say this works. Try it on your machine and see. - MOD

  • A very strange problem in microsoft access

    Hi all,
    Recently I wrote a simple java application which use microsoft access as the database. I connect the database sucessfully and I've even done the regular expression to filter the invalid text characters, everything works fine util I do the following SQL:
    insert into test values 'client for updates'
    Here test is my table name
    I found this perticular string 'clent for updates' is very strange, it can't be inserted into the database, I try 'client for up' or something else, they all work.
    Could anyone tell me what happened?
    With my best,
    Zike Huang(jim)

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • Query builder by microsoft access with CF basics

    does anyone if
    query builder by microsoft access can work with with CF mx
    how can i use it with cf and oracle queries?
    also, is it free.
    does anyone know how i can get it.
    and install it with my db (oracle 9i)????
    thanks

    You can build your query in Access, switch to sql view and
    copy and paste the code anywhere you want. However, ITWILL((((BE
    very hard)))TO READ BECAUSE IT IS all one LINE and has [[[[[TOO
    MANY]]]]]((BRACKETS))) and random CAPITALIZATION.
    Also remember that the s in sql stands for structured, not
    standard. Oracle and Access have different syntax in some cases and
    they definetly have different functions.
    A better approach would be to learn sql.

  • How to query microsoft access with DDE Request?

    Hello,
    We are trying to save the results of calibration tests to access database and include a search tool inside the labview to find specific results based on the part number of the tested device. So far we have accomplished writing data into the access database using the examples of labview. My question is that is there any way to send a query to microsoft access and recieve the results inside the labview? For example send a query with a specific criteria on the part number and recieve the results for that part number.
    Thanks in advance
    Pouya

    Why would you be using DDE. That microsoft technology is obsolete and has not been used/supported in quite a few years. Instead, look at the Database Connectivity Toolkit or LabSQL. There are also numerous posts on ADO (the technology behind both). Do a search.

  • Connecting Microsoft Access with Primavera via VBA

    I'm Primavera expert and Microsoft Access as well
    I want to know where to start to learn how can I establish a connection or session with Primavera from Microsoft Access via VBA.
    Thank you
    Emad

    Hello,
    I'm not familiar with Primavera P6 and Access. May be you should post the question in the
    Oracle Primavera forum.
    The following thread is about similar issue, you can try to use primavera SDK provider or ODBC connection:
    http://www.planningplanet.com/forums/planning-scheduling-programming-discussion/527878/primavera-p6-software-development-kit-sdk
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Controll user access with internal attribute date

    I all.
    i've created an internal attribute called Date-of-validity  of type Date.
    the objective is to controll user access based on the date configured in this attribute and permit acces only when the date as not been reached.
    who do i control-it, putt the acs looking to the date in an autommated way.
    thanks in adv
    Antero Vasconcelos

    It is possible to define an internal user whose password is taken from an external store.
    In internal user definition select "Password Type" to be the LDAP database and then define the rest of the user definition, including identity groups, as desired

  • Is there a way to protect the iCloud control panel access with a password in Windows 7?

    I have MS Outlook sync'd with my iCloud services in my Windows7 office PC (I'm pushing for Macs, but quite there yet, unfortunately!), and I have it password protected so nobody else can access my files. However, the iCloud app in Control Panel doesn't have any password protection so it can be messed with at any moment. Is there any way to protect it, or are there any plans to include this feature in future updates?

    Same here, I use iCloud on an office PC.
    I would like to password protect the access to the iCloud Control Panel. Is there a way to do that? I can either "Sign in" or "Sign Out."
    if I sign out I can't add iCloud calendar to Outlook. If I stay signed in, IT could easily activate my personal iCloud mail.
    Ideally, there should be a checkbox to just add calendar and leave mail, contacts and task out all together.
    Thanks.

  • Key swap problem using Microsoft keyboard with my Mac

    The keyboard used with my TiBook is an old (circa 1997) ergonomic "Natural Keyboard" made by Microsoft. I'd like to fix the problem of having the "Command" key function swapped with the "Alt" key. Downloading and installing the latest Microsoft keyboard driver for Mac (for OSX 1 thru 4) didn't fix the problem (even though I checked the box to swap the "Command" key (i.e., the Windows key) and ALT key. Is my keyboard just too old?
    thanks
    TiBook   Mac OS X (10.3.9)  

    Try:
    *[[/questions/947513]]

  • Software for controlling internet access with Airport Exreme

    I'd like to find software that let's me control what pc's in the house have internet access at certain times. My iMac is my main computer, and I use Airport Extreme as my router.

    You probably need to set the card up in OSX. Verizon should have a modem script that needs to be installed. (Hard Drive>Library>Modem Scripts). Then you need to set up the card from Network Preferences. Then it should work on both platforms.

  • My iphone 5 has started to have a problem controlling the volume with the buttons on the side? How to fix?

    It started like 3 days ago and first it was just my (-) decrease volume button but now its both.

    Also,
    Like I read in many other posts I'm starting to have Wi-Fi trouble.
    Known networks that were no problem recognizing and connecting to automatically with IOS 7.0.2. and downwards are starting to have trouble. Network not found or when found a connection is not made automatically.
    Also then trying to connect manually is a problem, as the network jiggers / flickers between the upper Wi-Fi connection field and the field 'known networks'....
    So I point near the network with my finger I want to connect to al the time....
    Normally this kind of thing is funny and I can laugh about it.
    But now I wish I could downgrade to IOS 7.0.2...

  • Insert in Java via Microsoft Access

    Hello People
    I need insert into DataBase datas with app in Java and DataBase Microsoft Access. How insert in Microsoft Access with app Java? Witch the Syntax of the SQL for Microsoft Access with app Java?
    Thanks
    Richard
    Java/Oracle Programmer

    http://java.sun.com/docs/books/tutorial/jdbc/index.html

  • Problem with ActiveX control, Microsoft Toolbar Control, version 6.0

    Hi everyone,
    I built a virtual machine on my desktop and installed Windows and Labview.  Everything looks fine. Then when I tried to insert ActiveX control, Microsoft Toolbar Control, version 6.0, in Labview, it says "Class is not licensed for use". 
    By the way, it works perfectly at my desktop enviroment.
    Any idea? Thanks a lot for any help.
    Anne

    There are two different licenses for those controls: a development license and a run-time license. Did you at some point have Visual C/C++/Basic 6.0 installed? If so, that would have installed the development license. That's the license you're missing on the virtual machine. This KB article discusses this issue: http://support.microsoft.com/kb/318597. It relates to using the controls in Visual Studio 2005, but it applies to LabVIEW as well.

Maybe you are looking for