"If IsNull(Me.Field1) Then" should work - IsNull() in VBA, IS NULL (with a
space) in SQL. Alternatively, you could use the NZ function, for example,
use an expression such as the following in the Control Source property of
"Text58" ...
= NZ([Field1], [Field2])

Signature
Brendan Reynolds
> Hi I have a text box which I want to pick up the data from field1 if this
> IsNull (blank) then I want it to pick up the data from field2. When the
[quoted text clipped - 11 lines]
>
> Thanks Bob
Bob - 12 Dec 2005 15:28 GMT
Brendan I like the = NZ([Field1], [Field2]) idea but if Field1 is blank I
get an Error in the Text box, other wise it gives the correct result. Any
ideas?
Thanks Bob
> "If IsNull(Me.Field1) Then" should work - IsNull() in VBA, IS NULL (with a
> space) in SQL. Alternatively, you could use the NZ function, for example,
[quoted text clipped - 18 lines]
>>
>> Thanks Bob
dbl - 12 Dec 2005 19:18 GMT
Brendan thanks for all your help, I have now sorted it.
It works fine.
Thanks again Bob
> Brendan I like the = NZ([Field1], [Field2]) idea but if Field1 is blank I
> get an Error in the Text box, other wise it gives the correct result. Any
[quoted text clipped - 24 lines]
>>>
>>> Thanks Bob