Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    No, import into existing table is what I suggested. But I did suggest just using a query to export desired records/fields. But if you have no need to retain records, then purge is okay. It was the approach of repeatedly creating and deleting table objects I found troublesome.



    Are there multiple simultaneous users? Is this a split design db?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    Ace2014 is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    88

    Post

    Quote Originally Posted by June7 View Post
    No, import into existing table is what I suggested. But I did suggest just using a query to export desired records/fields. But if you have no need to retain records, then purge is okay. It was the approach of repeatedly creating and deleting table objects I found troublesome.

    Are there multiple simultaneous users? Is this a split design db?
    Well, I'm an intern. I'll be leaving July 17th, so I need to have this done by then. This is a huge task. I'm focusing on making it as simple and specific as possible.
    My vision is to have this the sustainable knowledge database on sharepoint and to allow for multiple users at the same time.
    But I'm thinking as of right now, that goal might be a little too difficult and they'll only be able to use it one at a time. Thoughts?

    I haven't tested it with lots of data yet, but based on the theory, I should be doing it correctly. The only thing now standing in my way is exporting queries directly to any current user's computer.

    Thanks for the advice, I think that having the table exist and that appending and deleting the data is easier than creating a new table each time. I was experimenting.
    I added the table and will add a delete query after it.

    Now, I'm having trouble now exporting the queries to any user's computer. Here's the code I have for it as of now:

    Private Sub CommandCumulativeBench_Click()

    'Query allowing user to upload data
    Call Upload_PPNBench
    DoCmd.Requery (qry3a_Select_PPNBench)
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qry3a_Select_PPNBench", CurrentProject.Path & "\xyz.xls, True"
    'Query delecting tables contents
    DoCmd.Requery (qry3b_Select_PPNBench_dlt)
    End Sub

    Any recommendations, do you need more info?

  3. #18
    Ace2014 is offline Advanced Beginner
    Windows XP Access 2010 64bit
    Join Date
    Jun 2014
    Posts
    88
    I think I figured it out
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qry3a_Select_PPNBench", CurrentProject.Path & "\xyz.xls, True"
    replace with "xyz.xlsx", True

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. VBA Import Code Problem
    By jhrBanker in forum Import/Export Data
    Replies: 21
    Last Post: 05-16-2014, 10:15 AM
  2. Run Code Module Automatically
    By rmoreno in forum Modules
    Replies: 3
    Last Post: 06-18-2013, 11:55 AM
  3. Running Code from a Module in a Macro
    By ReadyReckoners in forum Modules
    Replies: 2
    Last Post: 05-08-2013, 04:45 AM
  4. Replies: 7
    Last Post: 02-26-2013, 02:26 PM
  5. need help with import Module
    By marubal21 in forum Modules
    Replies: 1
    Last Post: 07-22-2010, 12:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums