Solved replace null field to another textbox value

Akai90

Member
Local time
Tomorrow, 00:22
Joined
Feb 8, 2022
Messages
67
Code:
="Ini adalah memperakui bahawa <b>" & [namapp] & " ( " & [NOKP] & " )</b>  telah "

above is my current code.

is there another where if i want replace "NOKP" with another fields "PSPORT" if "NOKP" is null

hope you understand
 
="Ini adalah memperakui bahawa <b>" & [namapp] & " ( " & Nz([NOKP], [PSPORT]) & " )</b> telah "
 
Code:
="Ini adalah memperakui bahawa <b>" & [namapp] & " ( " & Nz([NOKP], [PSPORT]) & " )</b>  telah disertakan."

GOT SYNTAX ERROR
1669696316970.png
 
you should put [PSPORT] field in your form, then set the textbox Visible property to No.
 
so you use semicolon (;) and not comma (,)
 

Users who are viewing this thread

Back
Top Bottom