Results 1 to 2 of 2
  1. #1
    lamso is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    1

    How to import a csv number value (n+m+1) into access db

    Hello experts,



    I have the the following fields in csv:
    amount_1 and amount_2 with the following format parameter n+m+1.

    The complete length of the field should be (13,2) where:
    n=13 number of places to the left of the decimal point
    m=2 number of places to the right of the decimal point.

    I would like to define 2 fields in access with this content:
    amount_1= 49950.00
    amount_2= 49950.00- (where - or + is a algebraic sign)

    Could somebody tell which access data type is appropriate for my case and how to solve it?

    Thanks
    Lamso

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    your question is very unclear. particularly in reference to the title of the post. In the most general sense; import is import and not the process that does any math calcs.

    one can define the number field of a table to have 2 decimals; and select the correct number type that will allow 13 digits to the left of the decimal.

    the import, into a new table, probably will not default into this specific number type - - and so you can import it into a temp table, then use the temp table as a source for an AppendQuery that writes the values into an existing table where the field types are set up as you require.

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

Similar Threads

  1. Import Excel into access does not work
    By hawg1 in forum Import/Export Data
    Replies: 1
    Last Post: 05-28-2010, 12:05 PM
  2. Macro To Import CSV to ACCESS
    By csvivek in forum Import/Export Data
    Replies: 1
    Last Post: 12-07-2009, 01:49 PM
  3. Import excel sheets to access.
    By calexandru in forum Import/Export Data
    Replies: 0
    Last Post: 08-19-2009, 09:44 AM
  4. Import in Access (2003)
    By Claude in forum Programming
    Replies: 2
    Last Post: 06-18-2009, 12:49 AM
  5. Import large txt into access
    By klm127 in forum Import/Export Data
    Replies: 0
    Last Post: 04-23-2007, 06:22 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