L lg5050 Registered User. Local time Today, 04:22 Joined Nov 26, 2014 Messages 25 Dec 18, 2014 #1 Hi, i'm trying to figure out how to make this two fields in my form to say Y or N if the field is Not Null. Like if the field is not null = Y Else = N for the two fields. I have a picture to show what i'm talking about. Please help!! Attachments access form.png 76.2 KB · Views: 115
Hi, i'm trying to figure out how to make this two fields in my form to say Y or N if the field is Not Null. Like if the field is not null = Y Else = N for the two fields. I have a picture to show what i'm talking about. Please help!!
Frothingslosh Premier Pale Stale Ale Local time Today, 07:22 Joined Oct 17, 2012 Messages 3,255 Dec 18, 2014 #2 You have a couple of functions you need to use. IsNull(Argument) returns true or false depending on if the value of the supplied argument is null. IIf(Argument, TrueResult, FalseResult) determines whether Argument is true or false, and returns the corresponding result. Put them together, and you would have a control source like this: Code: =IIf(IsNull(Me.ControlName), "N", "Y")
You have a couple of functions you need to use. IsNull(Argument) returns true or false depending on if the value of the supplied argument is null. IIf(Argument, TrueResult, FalseResult) determines whether Argument is true or false, and returns the corresponding result. Put them together, and you would have a control source like this: Code: =IIf(IsNull(Me.ControlName), "N", "Y")
L lg5050 Registered User. Local time Today, 04:22 Joined Nov 26, 2014 Messages 25 Dec 18, 2014 #3 ok...i have a field called USLine and if i use that code for the USoFlag showing in the picture that show work for the field USLine.
ok...i have a field called USLine and if i use that code for the USoFlag showing in the picture that show work for the field USLine.