Results 1 to 4 of 4
  1. #1
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68

    Update Table Query with percent values

    Click image for larger version. 

Name:	CBA Table.PNG 
Views:	10 
Size:	28.8 KB 
ID:	22478Click image for larger version. 

Name:	Update Table ELA PCT.PNG 
Views:	10 
Size:	21.0 KB 
ID:	22479Click image for larger version. 

Name:	SLDR Table.PNG 
Views:	10 
Size:	55.2 KB 
ID:	22480Click image for larger version. 

Name:	SLDR Design View.PNG 
Views:	10 
Size:	86.7 KB 
ID:	22481

    Microsft Access 2007 I attached a sample file from the main database
    The table CBA that I imported into Access came from another source. The design view properties for the table CBA are FIELD SIZE: double FORMAT: percent DECIMAL PLACES: 0 I would like to update the table SLDR with those percentage values. It does not matter if it is decimal or percent I basically just need those numbers(student scores) to be inserted into the column. I have tried several different ways setting properties and such. I either end up with 1's or 0's or it rounds the value to 100%

    Any ideas on how to make this work I realized I could export the SLDR table insert the values in Excel and reimport. I was looking for a shorter way since I have to do this report every six weeks.




    Thank you for any help
    Attached Files Attached Files

  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
    This worked:

    Round([Percent Score]*100, 2)

    Remove Percent format from both tables. I never set formatting in tables.

    Very odd. For some reason field will not take decimal even thought it is set as Double. Even Decimal does not work.

    I tried creating new table and updating, still won't take decimal. Tried this data in another database. No good.

    Then I tried updating records with a fixed value - 37.25 - this works. Changed query back to use the field and now I get decimals. Took closer look at data. Apparently don't need decimal part anyway, just round to whole number.

    Something about the imported data.
    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
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68
    Ok Great Thank you

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Did some edits on my post. Might review again.
    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: 15
    Last Post: 10-18-2015, 04:05 PM
  2. Query; update query by percent
    By Niclasfa in forum Queries
    Replies: 2
    Last Post: 10-08-2014, 12:13 AM
  3. Replies: 6
    Last Post: 11-22-2013, 07:59 PM
  4. Replies: 3
    Last Post: 12-21-2012, 02:27 PM
  5. how to calculate Percent in an update query?
    By newtoAccess in forum Queries
    Replies: 4
    Last Post: 11-23-2010, 10:11 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