Try formatting the control source
=Format([Discount],"Percent")
DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
Please use the star below the post to say thanks if we have helped !
↓↓ It's down here ↓↓
or just set the format property to percent
Hasn't the o/p done that, just that they are likely storing .25?
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
so they are - but if that was the case, you should still see the % char. So now I suspect the value is a text value rather than numeric. Wait to see what the OP comes back with. Perhaps the box in orange should be formatted as well
I am even more puzzled now as the source is another control on the same form? Why not just use that source?
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
It's to fool the natives...
DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
Please use the star below the post to say thanks if we have helped !
↓↓ It's down here ↓↓
Well it worked for me.
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba
The box in orange is formatted as Percent, however, the value is 0.025 when it should be 2.5%.
The process behind the logic is when a Supplier is picked, the orange blocks are updated and in return the visible white controls to the left display the values for the user.
Agreed. OP, double check that the datatype for wherever 0.025 is coming from isn't a string. Playing around with this on my end I could only duplicate your results when the source was a string. I suppose if you had to you could use CDbl() in your Text17 control source
I'm still not clear on why you need two text boxes here.
tblSuppliers
* DiscountPercentageID = Number
tbluSuppliersDiscount
* DiscountPercentage = Number
Please use # icon on toolbar when posting code snippets.
Cross Posting: https://www.excelguru.ca/content.php?184
Debugging Access: https://www.youtube.com/results?sear...bug+access+vba