If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
using formulas in text fields
Hi,
I have a large text field from which I'd like to display only the last 5 characters. I thought the way to do this would be to set the control source to this: =Right$([f5],5) but it's giving me #Error. If I just set it to [f5] then the full text displays so the source is good but evidently I'm phrasing it wrong. Could someone tell me what the correct syntax is? Thank You |
#2
|
|||
|
|||
using formulas in text fields
My bad. This is actually not a text field but a memo field. Can one
not use text methods on memo fields? |
#3
|
|||
|
|||
using formulas in text fields
Does the field always have a value? If it's ever Null, then Right$ will
fail: use Right instead. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) wrote in message news Hi, I have a large text field from which I'd like to display only the last 5 characters. I thought the way to do this would be to set the control source to this: =Right$([f5],5) but it's giving me #Error. If I just set it to [f5] then the full text displays so the source is good but evidently I'm phrasing it wrong. Could someone tell me what the correct syntax is? Thank You |
#4
|
|||
|
|||
using formulas in text fields
I tried that one, same thingr. I know that there is something in this
field though. Something about the way I'm phrasing it must be wrong I've tried it like this: =[Right([f5],5)] and this =Right([f5],5) and this =Right(f5,5) always yields #Error On Thu, 14 Dec 2006 15:04:57 -0500, "Douglas J. Steele" wrote: Does the field always have a value? If it's ever Null, then Right$ will fail: use Right instead. |
#5
|
|||
|
|||
using formulas in text fields
|
#6
|
|||
|
|||
using formulas in text fields
On Thu, 14 Dec 2006 13:28:35 -0800, fredg
wrote: This was the problem thanks. Make sure the name of the control is NOT f5 |
Thread Tools | |
Display Modes | |
|
|