AccessHope
Registered User.
- Local time
- Today, 12:18
- Joined
- Jul 12, 2006
- Messages
- 15
Friends:
I have Two control Boxes(Field1 and Field2). Field1 text Box wit expression Look at Database table field using Dlookup() function,
Field1 expression like this:
=NZ(DLookUp("[up_rt_cp_only_flag]","[SubType2]","[SubType2].[Single_Name] ='" & [TextRDW39R] & "'"))
Field2 text box caculate value based on the Field1's value wich return Dlookup() function.
Field2 expression like this:
=IIf(NZ([Field1])="Y","Yes","No")
It caculate at form load process. it works fine, Field1 never show error which means it return value correct, I don't know if it is null value in table field cause this problem, so i used NZ function.
However, some time it works fine, many time I got #error for the field2.
Do you have any idea?
Thank you for your help.
I have Two control Boxes(Field1 and Field2). Field1 text Box wit expression Look at Database table field using Dlookup() function,
Field1 expression like this:
=NZ(DLookUp("[up_rt_cp_only_flag]","[SubType2]","[SubType2].[Single_Name] ='" & [TextRDW39R] & "'"))
Field2 text box caculate value based on the Field1's value wich return Dlookup() function.
Field2 expression like this:
=IIf(NZ([Field1])="Y","Yes","No")
It caculate at form load process. it works fine, Field1 never show error which means it return value correct, I don't know if it is null value in table field cause this problem, so i used NZ function.
However, some time it works fine, many time I got #error for the field2.
Do you have any idea?
Thank you for your help.