Unless it's a numeric field, in which case you'd want to use something like these (MySQL, MSSQL, Oracle & MSAccess, exceptions as noted):
FLOOR(value) for the pounds (Int(value) in MSAccess) -- beware the use of FLOOR on negative values, though value % 1 for the pence (MOD(value,1) in Oracle, value MOD 1 in MSAccess) Avoid string processing if you can... - Jeff Barney Boisvert wrote: > listFirst, listRest, using "." as the delimiter? That's what I'd use > in CF at least. If you want to do it in the DB, you'd have to do > something like left(value, find(".", value) - 1) for the pounds, and > then the reverse for the pence. > > cheers, > barneyb > > On 11/8/05, Saturday (Stuart Kidd) <[EMAIL PROTECTED]> wrote: > >> Hi guys, >> >> I've got a number in one of my fields which has a decimal point. I >> want to pull everything from the left of the point so I can use that >> value separately for a drop down box for the £ value (pound sterling) >> and to the right for the pence select box. I'm just wondering what >> the best way of finding the digits before the decimal place and after >> it. >> >> Any help would be great, thanks, >> >> Saturday >> >> > > -- > Barney Boisvert > [EMAIL PROTECTED] > 360.319.6145 > http://www.barneyb.com/ > > Got Gmail? I have 100 invites. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223614 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54