D DBFIN Registered User. Local time Today, 13:40 Joined May 10, 2007 Messages 205 Jan 29, 2015 #1 I have a text percentage that reads 28.0%. I want to convert to a numeric percentage that reads either 0.28 or 28.0%, preferably the latter. The Val function returns an error. How do I do this in a query ?
I have a text percentage that reads 28.0%. I want to convert to a numeric percentage that reads either 0.28 or 28.0%, preferably the latter. The Val function returns an error. How do I do this in a query ?
jdraw Super Moderator Staff member Local time Today, 13:40 Joined Jan 23, 2006 Messages 15,565 Jan 29, 2015 #2 What have you tried? What table and table design(s) is/are involved?
D DBFIN Registered User. Local time Today, 13:40 Joined May 10, 2007 Messages 205 Jan 29, 2015 #3 CDbl and Val do not work. Query reads a table, where Field is in text format like 28.0%.
C CJ_London Super Moderator Staff member Local time Today, 18:40 Joined Feb 19, 2013 Messages 17,534 Jan 30, 2015 #4 Val should work - it will return 28.0 per your example so to convert to a decimal your calc would be val(myText)/100 see this link https://support.office.microsoft.co...28-bbe3-7ec14c6ab4d3&ui=en-US&rs=en-001&ad=US You might want to explain what 'doesn't work' means
Val should work - it will return 28.0 per your example so to convert to a decimal your calc would be val(myText)/100 see this link https://support.office.microsoft.co...28-bbe3-7ec14c6ab4d3&ui=en-US&rs=en-001&ad=US You might want to explain what 'doesn't work' means