Omit ")" at the end of a sting (1 Viewer)

mike wild

Registered User.
Local time
Today, 05:51
Joined
Feb 16, 2003
Messages
69
have a ")" at the end of a string of text which i need to omit, any ideas?

i have this
IIf(Left([time],10)=")","",([time])))

but the whole thing deletes
 

AlanS

Registered User.
Local time
Today, 00:51
Joined
Mar 23, 2001
Messages
292
Try this:

IIf(Right$([time], 1) = ")", Left$([time], Len([time]) - 1), [time])

Assuming that [time] refers to a field in a table or query, or to a text box on a form or report, it's good practice to not re-use system-defined names, which in some contexts may cause confusion - e.g., there is an intrinsic Access function named Time().
 

Users who are viewing this thread

Top Bottom