Results 1 to 5 of 5
  1. #1
    Lesg is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    101

    Saved Import Issue

    Hi Guys,



    I have saved a import for stock taking, that looks for : C:\[Folder]\StockImport.xlsx and is saved as StockImport:

    Click image for larger version. 

Name:	Screenshot 2023-01-31 144501.png 
Views:	14 
Size:	5.6 KB 
ID:	49597

    Behind a button action, this saved import called:

    Code:
    Private Sub cmdUpdateStock_Click()
    MsgBox " You are about to run update script to imorted and update stock values, do you wish to continue?", vbYesNo, "Import Stock Take"
    DoCmd.RunSavedImportExport ("StockImport")
    DoCmd.OpenQuery ("qrySTK01ItemsToUpdate"), acViewPreview
    MsgBox "Your Stock has been added to Import Table, do you wish to apply the update?", vbYesNoCancel, "Update Stock Values"
    DoCmd.SetWarnings False
    DoCmd.OpenQuery ("qryUpdateStockTake")
    DoCmd.OpenQuery ("qrySTK01ImportUpdateAudit")
    DoCmd.SetWarnings True
    Me.Refresh
    End Sub
    This has worked for a while, but recent testing after a reported issue this now errors when calling the RunSavedImportExport, saying it cannot be found.

    Click image for larger version. 

Name:	Screenshot 2023-01-31 150007.png 
Views:	14 
Size:	45.8 KB 
ID:	49598


    If I try and run via the saved imports it throws another error, with the word 'Export' :

    Click image for larger version. 

Name:	Screenshot 2023-01-31 145627.png 
Views:	14 
Size:	26.6 KB 
ID:	49599

    I do have some exports defined, on the export tab and they work fine, so not sure even where to look at this.

    If I recreate the import, it saves and works, but if it breaks on a deployed version, I would have to issue another update!

    So 2 questions:
    1. Any idea why it cant find the defined saved task?
    2. Are there better ways to complete this process?

    Thanks in advance.

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    it's looking on your C drive - where is the deployed version? - if on another machine perhaps the file is not in the same location

    The error 3709 can refer your excel file having spaces in the column headers - check also for leading and trailing spaces

  3. #3
    Lesg is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    101
    Quote Originally Posted by CJ_London View Post
    it's looking on your C drive - where is the deployed version? - if on another machine perhaps the file is not in the same location

    The error 3709 can refer your excel file having spaces in the column headers - check also for leading and trailing spaces
    Thanks for that CJ, when the users install/update the version, the application is saved in the same location for every user.

    I will check the column headings and advise

    thank you

  4. #4
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    the application is saved in the same location for every user.
    I was referring to the excel file

  5. #5
    Lesg is offline Competent Performer
    Windows 10 Office 365
    Join Date
    Sep 2021
    Posts
    101
    Hi CJ,

    Yes, the file is in the same location for all users, they have guidance notes on ensuring that the excel file needs to meet.

    Having tested again yesterday, from your suggestion, it seems the issue must have been the column headings, as using my own guide to creating a saving the file, the import worked fine.

    Thanks for that

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 08-09-2017, 04:46 AM
  2. Need to Edit Saved Import
    By deekadelic in forum Import/Export Data
    Replies: 2
    Last Post: 07-22-2016, 01:23 PM
  3. My saved import/export are gone
    By egyhamada in forum Import/Export Data
    Replies: 4
    Last Post: 02-06-2016, 08:47 AM
  4. Refreshing a Saved Import
    By accessmatt in forum Access
    Replies: 1
    Last Post: 09-22-2014, 04:00 PM
  5. Saved Import in Query
    By Kimbertha in forum Queries
    Replies: 1
    Last Post: 10-21-2010, 07:21 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