Problem with messagebox not displaying

The formula code listed below is in an “Approval” button on a form. I have added the two lines "@Prompt([Ok]; “Press the Submit button to complete the process.”) to the lines of code but it isn’t working.

I am wanting to have the message “Press the Submit button…” to display to the user if they have entered “No” to the question “Next Approver Required?”. And if they have answered “Yes”, than I want the message to display at the end.

Can someone tell me what I am doing wrong and why it won’t display?

Thanks in advance for your help.

Jean

CODE:

@Command([EditDocument];“1”) ;

FIELD OPNStatus := “Awaiting Approval”;

OPNStatus;

@If((AdditionalApprovers = “”); responseYN :=@Prompt([YesNo]; “Next Approver Required?”; “Does this request require another approver?”; “”); “”); @If(responseYN = 1; @Prompt([Ok]; “Approver’s Name”; “Please enter the name of the next approver.”; @Command([EditGotoField];“Dept_Manager1”));@Prompt([Ok]; “Press the Submit button to complete the process.”));

FIELD AdditionalApprovers:= @If(responseYN = 1; “Yes”; “No”);

AdditionalApprovers;

FIELD ApprovedBy1 := @Name([Abbreviate];@UserName);

ApprovedBy1;

FIELD holdingApprover1 := @Name([Abbreviate];@UserName);

holdingApprover1;

FIELD ApprovalDate1 := @Today;

ApprovalDate1;

@If(AdditionalApprovers = “No”; FIELD PersonnelRepDate1 := @Today;“”);

@If(AdditionalApprovers = “No”; FIELD HoldDate_Personnel := @Today;“”);

FIELD Approved1 := “Yes”;

Approved1;

FIELD FirstFlag := “Yes”;

FirstFlag;

@Prompt([Ok]; “Press the Submit button to complete the process.”);

@Command( [RefreshHideFormulas] )

END OF CODE

Subject: Problem with messagebox not displaying

Jean

I would use P1 := Prompt

Then @If( P1 = 1 (which is Yes); then @Do; Else @Do

Subject: Problem with messagebox not displaying

I think it is because you don’t have a title in the prompt.

Try

@Prompt([Ok]; “Submit”; “Press the Submit button to complete the process.”);