My goal was to have a simple way for someone to be in a record (search/update mode) press a button that brings them to add a new customer and then a button to close the add form and exit back to the search/update. (my original thought of just pressing F10 would not work because you need to be at the last record for it to add a new record)
So I used this to leave search/update and take me to new.
var vAddNEWCustomer as Int
If @Askuser("Add a new customer?","","") Then
vAddNEWCustomer = @selectTreeItem("MYSESAME!Forms!Add Data!Customers!Data")
Then I thought this would save the data and close the form and I was going to add another @selectTreeitem under this to go back to were I was in search update.
var vsavebutton as int
vsavebutton = @selectTreeitem ("Add Data Menu!Navigation!Save Record and Close Form (Shift-F10)")
Quote:It does save the record, but event programming is not allowed to close the form from which it is running.
ARE YOU SAYING THERE IS NO WAY OTHER THEN USING THE CONFUSING COMMAND BAR FOR ME TO ACCOMPLISH THE GOAL?
Thanks for the help.