Results 1 to 4 of 4
  1. #1
    c3hammy is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Posts
    2

    Excel Import macro

    Hi



    I want to make a production counting system using a siemens logo plc this will data log the counts to an excel spreed sheet every second but can only have a maximum of 20,000 rows before it starts overwriting itself. i Would like to pull this data to access every second from the excel spreadsheet, I have to use indexing (no duplicates) on the date/time field so it does not keep pulling the same data over and over again the only problem with this is you get the attached prompt all the time that makes it impossible for me to automate it. Is there a better way of doing what i'm trying to achieve or a way to disable the pop up?

    I'm new to access any help would be greatly appreciated



    Click image for larger version. 

Name:	Capture.PNG 
Views:	12 
Size:	13.6 KB 
ID:	38871

  2. #2
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can suppress those warnings in a Macro or VBA using "SetWarnings".
    See: https://docs.microsoft.com/en-us/off...md.setwarnings

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Perhaps:

    DoCmd.SetWarnings False

    ' your import code

    DoCmd.SetWarnings True
    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.

  4. #4
    c3hammy is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Posts
    2
    Thanks guys got it working

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

Similar Threads

  1. Import Excel file into an existing table via a macro
    By Gaby2811 in forum Import/Export Data
    Replies: 3
    Last Post: 09-23-2016, 06:12 AM
  2. Open Import Excel from Macro
    By shepa006 in forum Macros
    Replies: 3
    Last Post: 04-17-2015, 12:58 PM
  3. Import Excel File using a Macro
    By smakkiee in forum Access
    Replies: 6
    Last Post: 04-28-2014, 08:45 AM
  4. Excel Import Macro Help in Access
    By vennies83 in forum Import/Export Data
    Replies: 5
    Last Post: 11-02-2011, 09:24 AM
  5. Import Excel File Using Macro?
    By oregoncrete in forum Import/Export Data
    Replies: 0
    Last Post: 04-05-2011, 12:26 PM

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