Normal Topic Transition from Search to Add mode and back (Read 480 times)
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Transition from Search to Add mode and back
Dec 21st, 2010 at 9:40pm
Print Post Print Post  
I'm playing with a new database.  I want to have the user click on a command button to transfer from the Search mode at retrieve spec open to the add data mode and then to go back to the search mode (retrieve spec open) by clicking on another command button.

I've got it to work by using the @SelectTreeItem commands. 

I was wondering if there is a way to close the forms when I leave one mode to go to the other.  Right now I end up with both the Search and Add Data forms open.

Any ideas?

  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: Transition from Search to Add mode and back
Reply #1 - Dec 21st, 2010 at 10:02pm
Print Post Print Post  
If you add @Exit after the @SelectTreeItem, it will close the form that called it (the one you wanted to close). You may want to use FormCommit("") before @SelectTreeItem to save the form before you exit.
  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
NHUser
Full Member
***
Offline



Posts: 320
Location: Amherst, NH
Joined: Aug 2nd, 2010
Re: Transition from Search to Add mode and back
Reply #2 - Dec 22nd, 2010 at 8:26pm
Print Post Print Post  
Thanks!  That works just like I needed!!

  
Back to top
 
IP Logged