ThisForm.nTransId = -1 REQUERY("MyView") append blank replace optiongroupfield with .f. or replace optiongroupfield with 0 or replace optiongroupfield with [YES] thisform.refresh()>I have a form that is based on a p-view. The textboxes controlsource is the field in the view. I have one optiongroup with two options. when I add a new record by:
>ThisForm.nTransId = -1 >REQUERY("MyView") >APPEND BLANK IN MyView >ThisForm.Refresh >>