Results 1 to 10 of 10
  1. #1
    nikogeorgiev is offline Novice
    Windows XP Access 2003
    Join Date
    May 2013
    Location
    London
    Posts
    9

    Linking Excel spreadsheet

    Dear all,



    I've linked an Excel spreadsheet to my database. One of the fields in the spreadsheet contains more than 255 characters and the imported data is truncated to exactly 255 characters. I tried changing the properties in Access from Text to Memo without much success.

    I would appreciate any comments. Many thanks

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

  3. #3
    nikogeorgiev is offline Novice
    Windows XP Access 2003
    Join Date
    May 2013
    Location
    London
    Posts
    9
    Thank you JoeM! Apparently there is a design problem. This is very unfortunate as I have a dynamic Excel spread sheet which I cannot just import every single day.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    What is the Access database used for?

    You could use Macros to automatically re-import a fresh copy of the Excel file whenever the database is opened.

  5. #5
    nikogeorgiev is offline Novice
    Windows XP Access 2003
    Join Date
    May 2013
    Location
    London
    Posts
    9
    it is for nomitoring of suppliers, exposures, financials, news etc

    thank you

  6. #6
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    But how do you use it? What do you actually do? Run reports?
    How often do you need the Excel information refreshed?
    Is it just one user who uses it?

  7. #7
    nikogeorgiev is offline Novice
    Windows XP Access 2003
    Join Date
    May 2013
    Location
    London
    Posts
    9
    It will be used by procurment and the credit function once it's done to run reports. The Excel sheet is updated on an ad hoc basis

    thank you

  8. #8
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If it is only used by one user at a time, I would recommend going with the suggestion I put in reply #4.
    You can create a Macro using the TransferSpreadsheet Action to import the file.
    If you name the Macro "AutoExec", it will run automatically upon the opening of the database.

  9. #9
    nikogeorgiev is offline Novice
    Windows XP Access 2003
    Join Date
    May 2013
    Location
    London
    Posts
    9
    Many thanks for that!

  10. #10
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    One final tip. If you need to clear out the old data before importing the new, add another Action in your Macro, specifically the RunSQL action.
    Then in the SQL Statement argument, add in this code:
    Code:
    Delete [TableName].* From [TableName];
    where TableName is the name of your table.

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

Similar Threads

  1. Linked Excel spreadsheet
    By nikogeorgiev in forum Access
    Replies: 3
    Last Post: 05-16-2013, 03:10 AM
  2. Empty Excel spreadsheet
    By drobizzle in forum Forms
    Replies: 1
    Last Post: 02-04-2012, 07:58 PM
  3. Importing Excel Spreadsheet
    By JayX in forum Access
    Replies: 2
    Last Post: 12-13-2011, 08:27 AM
  4. header for excel spreadsheet
    By crowegreg in forum Import/Export Data
    Replies: 8
    Last Post: 08-23-2011, 03:09 PM
  5. Pivot Table from Excel Spreadsheet
    By Cgil32 in forum Access
    Replies: 0
    Last Post: 08-26-2010, 05:18 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