Skip to main content

Search

Search

Leading Zero Upc's From Excel

Comments

2 comments

  • Avatar
    Domingo Rodriguez
    Moderator
    Microsoft Excel was not designed to be a true database. When connecting to Excel,BarTender uses the Microsoft JET Driver, which was originally designed for Microsoft Access. One of the conditions of the JET driver is that each field (or column in your spreadsheet) must have a data type, just like the columns in Access would have data types. Since Excel is not a true database, the fields do not have any inherent data types. Instead, the JET driver takes a “best guess” at what the data type for a column is.

    A possible quick fix would be to save your Excel file as a .CSV (Comma separated value) document, and then connect to this CSV file from BarTender's database connection setup dialog by using a "text file" database platform instead of an Excel one.

    A different workaround would be to set a "Minimum" number of characters under the properties dialog of the BarTender object in question by selecting the "More Options > Minimum" dialog. You would set a minimum of 12 digits, and pad on left using 0 as the pad character.
    0
  • Avatar
    Legacy Poster
    [quote name='Domingo - Seagull Support' timestamp='1351684787' post='3610']
    Microsoft Excel was not designed to be a true database. When connecting to Excel,BarTender uses the Microsoft JET Driver, which was originally designed for Microsoft Access. One of the conditions of the JET driver is that each field (or column in your spreadsheet) must have a data type, just like the columns in Access would have data types. Since Excel is not a true database, the fields do not have any inherent data types. Instead, the JET driver takes a “best guess” at what the data type for a column is.

    A possible quick fix would be to save your Excel file as a .CSV (Comma separated value) document, and then connect to this CSV file from BarTender's database connection setup dialog by using a "text file" database platform instead of an Excel one.

    A different workaround would be to set a "Minimum" number of characters under the properties dialog of the BarTender object in question by selecting the "More Options > Minimum" dialog. You would set a minimum of 12 digits, and pad on left using 0 as the pad character.
    [/quote]

    Thank you! Problem Solved!!
    0

Please sign in to leave a comment.