Results 1 to 4 of 4
  1. #1
    jake32008 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    3

    Weeks Conversion

    Hi everybody,

    I'm a newer user of Access and am learning it in order to better manage sales & inventory for a major retailer. The retailer's uses a week system such as 201201, 201202, etc. and when I pull a report from their system that I intend to use in Access the field in Access will be 201201 POS QTY, 201202 Forecast, etc. I would like to be able to change the field names to just be the week (I know if it's the POS QTY or Forecast by the table I'm in) so that I can compare different data. I update these reports at least weekly if not daily and I would like to not have to manually change the field name each time for 52+ weeks. So my question is, how can I change the field names on these tables en masse and not have to do this every time I update the tables?

    Thank you for your help,



    Jake

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    Are you importing data into tables and then having to change the names of the fields? If this is the case, create your table with the names of the fields you wish to have. Import your data to a temp table and run an update query to place your new data in the template table that contains the proper field names.

    http://www.databasedev.co.uk/update_query.html

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,969
    I am glad you recognize that having multiple similar named fields, especially with a date component, is not appropriate design. Having to modify db design as time marches on is a maintenance nightmare.

    Looks like this is an import that the Wizard and TransferText might not handle well and a customized import procedure could be needed. Common topic, search forum or Google: Access VBA import text file open for input

    http://answers.microsoft.com/en-us/o...b-64a8e146a7e9
    http://forums.aspfree.com/microsoft-...le-350209.html
    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
    jake32008 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Posts
    3
    Alansidman, I'll give this a shot and let you know. Thank you!

    June7, I still have a lot to learn about importing and database management in general so I appreciate the resources!

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

Similar Threads

  1. Help with most recent 2 weeks query.
    By tplee in forum Queries
    Replies: 7
    Last Post: 11-30-2011, 08:05 PM
  2. Replies: 3
    Last Post: 11-22-2011, 11:06 AM
  3. Date Add 26 weeks minus 1 day
    By ker9 in forum Queries
    Replies: 3
    Last Post: 07-26-2011, 01:20 PM
  4. Group Result by weeks
    By Grooz13 in forum Queries
    Replies: 2
    Last Post: 09-14-2010, 07:09 AM
  5. How to calculate number of weeks
    By FeatherDust in forum Queries
    Replies: 0
    Last Post: 09-18-2009, 02:50 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