Solved replace null field to another textbox value (1 Viewer)

Akai90

Member
Local time
, 03:22
Joined
Feb 8, 2022
Messages
65
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
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
, 03:22
Joined
May 7, 2009
Messages
19,249
="Ini adalah memperakui bahawa <b>" & [namapp] & " ( " & Nz([NOKP], [PSPORT]) & " )</b> telah "
 

Akai90

Member
Local time
, 03:22
Joined
Feb 8, 2022
Messages
65
Code:
="Ini adalah memperakui bahawa <b>" & [namapp] & " ( " & Nz([NOKP], [PSPORT]) & " )</b>  telah disertakan."

GOT SYNTAX ERROR
1669696316970.png
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
, 03:22
Joined
May 7, 2009
Messages
19,249
you should put [PSPORT] field in your form, then set the textbox Visible property to No.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
, 03:22
Joined
May 7, 2009
Messages
19,249
so you use semicolon (;) and not comma (,)
 

Users who are viewing this thread

Top Bottom