Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display part of field on a bound form using the RIGHT function???

Status
Not open for further replies.
Jan 22, 2001
124
US
I have the control source of the field on the form set to:

=Right(
Code:
, 8)

and it displays "#Error"

If I use:

Right([Code], 8)

I get "#Name?"

Any ideas what I'm doing wrong?
 
Not sure what happened to my post but, the functions should read:

=Right(
Code:
, 8)
&
Right([Code], 8)
 
For some reason, this isn't working.

Before the comma in both examples, I have the table's field name enclosed in brackets.
 
Try creating a new unbound control and for that control using a control source of:

=right(controla,8)

(where controla is your original field)

Or you could create a calculated field in your query that does the same thing and then just include this field on the form.

J. Jones
jjones@cybrtyme.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top