"However, the field remains blank. It's not displaying anything."
The Default Value of a field is only valid when you go to a ***new record***,
which means it has to be set ***before*** a new record is invoked. In other
words, you can't enter a value in RevCtr and SimItem and set CMD.DefaultValue
= ([RevCtr]) & Right([SimItem], 4) and think that CMD on ***this same
record*** will then be populated from this formula, which is what it sounds
like you expect.. You'd have to use the AfterUpdate events of your two
"supplying" fields, as it were.
Private Sub RevCtr_AfterUpdate()
If Not IsNull(Me.SimItem) Then Me.CMD = Right(Me.SimItem, 4) & Me.RevCtr
End Sub
Private Sub SimItem_AfterUpdate()
If Not IsNull(Me.RevCtr) Then Me.CMD = Right(Me.SimItem, 4) & Me.RevCtr
End Sub
When both of the fields SimItem and RevCtr are populated, and you move from
the second one's textbox, CMD will be populated. Is this your intent?
As an alternative, if your form were based on a query, you could use a
calculated field in the query to do the same thing.
CMD: Right([SimItem], 4) & [RevCtr]
Then set the Control Source of your textbox on your form to this calculated
field.
Try this.
=([RevCtr]) &""& Right([SimItem],4)
I have a form and I'm trying to make the default value of one field equal to
a combination of two other fields. On the Data properties of CMD field, I
[quoted text clipped - 3 lines]
Why isn't this working? All fields are text fields.