Results 1 to 2 of 2
  1. #1
    kagoodwin13 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Feb 2012
    Posts
    181

    Make Table query is changing data format

    I am having trouble with a Make Table query truncating data, as well as changing the field formatting.



    qryMAKE_TABLE has two fields: PART_NUMBER and MAX. In Design View of qryMAKE_TABLE, I changed the format of the field MAX to "General Number." In the field, there are decimals representing percentages (ie 0.1056 = 10.56%) , so keeping decimals is very important.

    tblMADE_TABLE also has two fields as a result of qryMAKE_TABLE, PART_NUMBER and MAX. In Design View of tblMADE_TABLE, I changed the format of the field MAX to Number - Double.

    After running qryMAKE_TABLE, it changes the MAX field to text in the qryMAKE_TABLE and in tblMADE_TABLE. This breaks a subsequent query that needs a number to run a conditional test (If MAX>1, flag as NO GOOD). However this conditional test can't run if MAX is text, it must be a number.

    Any idea why Access refuses to keep field MAX as a number? Why is it converting to text while running a make table query? Any work-arounds?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    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.

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

Similar Threads

  1. Replies: 3
    Last Post: 12-21-2012, 02:27 PM
  2. Replies: 2
    Last Post: 12-17-2012, 03:46 PM
  3. Replies: 2
    Last Post: 10-09-2012, 12:52 AM
  4. change data type in make table query
    By jgelpi16 in forum Queries
    Replies: 2
    Last Post: 01-26-2011, 09:37 AM
  5. Query changing format
    By John Southern in forum Queries
    Replies: 3
    Last Post: 07-05-2010, 09:57 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