+ Reply to Thread
Results 1 to 4 of 4

How can I fill Database with VBA on Mac?

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    Moscow
    MS-Off Ver
    Excel 2003
    Posts
    3

    How can I fill Database with VBA on Mac?

    Hello everyone!

    I have a lot of files with tables. Data from these tables should be transferred to SQLite database. I'm coding on Mac, thus there are a lot of limitations. As a driver I use one from Actual Technologies.

    I can easily get data from DB with QueryTables. But how can I write data to DB with it? I tried making a loop with QueryTables.Add, but:
    1. It seems unreasonable to create a new QT for each row I want to write.
    2. It works badly, causing General ODBC Error 1004. Probably because it attempts to send an INSERT query while the previous one is still in work (and you can't set BackgroundQuery to False with "INSERT").

    So what's better to do about it? Can I insert/get data to/from Database without using QueryTables at all? ADO doesn't work on Mac.

    Or how can I write data to DB with QT?

    Thanks in advance!

    Crossposts:
    http://www.cyberforum.ru/vba/thread1...ml#post6451733
    http://www.excelforum.com/excel-prog...ba-on-mac.html
    http://www.planetaexcel.ru/forum/ind...#message491769
    http://stackoverflow.com/questions/2...ith-vba-on-mac
    http://www.mrexcel.com/forum/excel-q...ml#post3879673
    http://www.vbaexpress.com/forum/show...519#post312519
    http://www.ozgrid.com/forum/showthre...689#post720689
    http://www.excelworld.ru/forum/10-12061-1#103251
    Last edited by Pavel1; 07-23-2014 at 03:02 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: How can I fill Database with VBA on Mac?

    Nevermind! Sorry, didn't read your post properly
    Last edited by Arkadi; 07-22-2014 at 10:35 AM. Reason: My bad, you said no ADO :(
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: How can I fill Database with VBA on Mac?

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    04-11-2014
    Location
    Moscow
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: How can I fill Database with VBA on Mac?

    I've edited post to include all links.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-11-2010, 06:22 AM
  2. auto fill in of excel invoice from outside database
    By Rhonda F in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-21-2007, 01:27 AM
  3. Fill Data from Database
    By [email protected] in forum Excel General
    Replies: 3
    Last Post: 06-07-2006, 06:10 PM
  4. Automatic Cell Fill-in from Spreadsheet Database
    By Cheri in forum Excel General
    Replies: 3
    Last Post: 01-18-2006, 11:00 PM
  5. [SOLVED] Userform to Fill Database
    By Jasper in forum Excel General
    Replies: 2
    Last Post: 02-24-2005, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1