General information
Category:
Coding, syntax & commands
Title:
Do form command in code
The following is the code in the valid event of a combobox :
IF this.ListIndex = 0 AND thisform.nformstatus > 0 && insert or edit mode
lyn = MESSAGEBOX("This carrier is not in the database, do you wish to enter them ?",4+32,"Carrier information")
IF lyn = 6 && yes
DO FORM carrier NAME carrier2 LINKED WITH this.Value
ENDIF
ENDIF
The messagebox comes up but when you select yes to enter the data the form just flashes on the screen and closes immediately.
Any help greatly appreciated.
Ian
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only