I have a field on a form. Whenever another field [Item Type]="Mod" I
want the [Item Name] field to have an extra 4 spaces in front of it.
Whenever the [Item Type] field = "Main" I want the [Item Name] field
just to be the way it is. I'm trying to indent the [Item Name] field
only when the [Item Type] field = "Mod".
Thank you onc again John....I'm going nuts trying to figure this out.
DS
Do you want this Item Name field to be editable? If so it's going to
be a lot tougher!
If not, be sure that the name of the Item Name textbox is something
OTHER THAN "Item Name" - Access will get confused. Try setting it to
txtItemName for example. Set its Control Source property to
=IIF([Item Type] = "Mod", " ", "") & [Item Name])
This will *display* the name as you wish, but since it's a calculated
expression rather than a field value it won't be editable.
John W. Vinson[MVP]