CrystalSurfer
Matrix activist
- Local time
- Today, 12:36
- Joined
- Jan 11, 2006
- Messages
- 75
the following code retrieves a default value for a textbox on a continuous subform:
This works nicely except it overwrites any value typed into [BodyText].
So how can I code it so that it will not perform the DLookup if there is a value already in [BodyText]?
I've tried using various Nz() without success.
Many thanks
Code:
Me.BodyText.Value = DLookup("[DefaultBodyText]", "[tblHeading]", "[ID] =" & Forms![frmClient]![sbfrmClientDocument]!Heading.Value)
This works nicely except it overwrites any value typed into [BodyText].
So how can I code it so that it will not perform the DLookup if there is a value already in [BodyText]?
I've tried using various Nz() without success.
Many thanks