Group: microsoft.public.access.queries · Group Profile · Search for Xy001 in microsoft.public.access.queries
Author: John Spencer
Date: Apr 17, 2007 08:50
First use the InStr function to find the period. Then use the Left Function to trim off the period and stuff after it. Change TheField to the actual field name. NoDecimals: IIf(InStr([TheField],".") 0, Left([TheField],InStr([TheField],".")-1) , ([TheField]) As the Left function will cause an error if it can't find a period, use an IIf statement to fix only those with a period. Otherwise
|