Results 1 to 4 of 4
  1. #1
    inhops is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    13

    Format Currency & Percent in Make Table Query


    I have added the correct format (via Properties) to my query. When I run it as a select query the currency & percent formats appear correctly. But when I run it as a Make Table query, the table does not have the correct formats. I can format the table that is made, but then the next time I run the Make Table query, the formatting is gone. How can I get the correct formatting into the table that is made with the Make Table query? Thanks for your help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Would need a VBA procedure to modify those properties.

    Why do you need to repeatedly run the same MAKE TABLE query? This sounds like a design flaw in the db.
    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.

  3. #3
    inhops is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Nov 2011
    Posts
    13
    The query is very complicated because it is based on multiple other queries. And we have duplicate data in some of the input files, so I have to do intermediate queries to remove the duplicates (First of). So I was hoping to have the result be a table that the client can look at often and export and not have to run the query each time.

    Can you suggest some code for a VBA procedure to format the table correctly?

    Another option I thought of is to use an append query and delete all of the records in the table before the append each time. But I can't figure out how to delete all of the records in the table.

    Thanks for your help.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    For DELETE query see
    http://www.techonthenet.com/sql/delete.php

    BUT be careful, once you delete the data is gone, no undo.

    I would not recommend a repeated Make Table approach and feel it may be a design flaw also.
    When you add data to your table, you could add the current date. Then only use records with the current date in subsequent processes -- NO DELETEs.

    Also, you could use a YesNo type flag on your table. Suppose a field called LogicallyDeleted where Yes means the field is "Deleted". So when you do your processing you only Select those records where LogicallyDeleted is Not Yes.

    Just some more fuel for the fire.

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

Similar Threads

  1. Replies: 7
    Last Post: 02-29-2012, 06:37 AM
  2. Replies: 3
    Last Post: 01-27-2012, 12:59 AM
  3. Custom Currency Format
    By Ichigo in forum Access
    Replies: 3
    Last Post: 04-26-2011, 03:34 AM
  4. Replies: 2
    Last Post: 03-23-2011, 11:43 AM
  5. Access 2007: Percent Format Issue
    By diane802 in forum Access
    Replies: 6
    Last Post: 12-30-2009, 10:29 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