How to See the Previously Chosen Option Button Active in a Vb 6.0 Form?

I am working with several forms. Each form contains four option buttons, a Next Button and a Previous Button. Suppose in the first form I chose any of the four option buttons and then click on the next button to open another form. Now when I go back to the previous form by clicking on the Previous button, I cannot see the previously chosen option button selected....How to solve the problem, Please advise......

Popular White Paper On This Topic

If you are using separate forms, then you will need to devise some method for the forms to communicate with each other, to indicate the source of the data to be displayed.
Given the lack of information, it's very difficult to give you any useful suggestions.
What determines the "next" form? Is it related to the choice of option button on the "previous" form?
What are you doing with the data from each form? Is it being stored in a table? When is stored (when you move on to the next form, or only when you finish making selections on several forms)? If the latter, where is it being stored while you collect the data?

I do agree with Mr. Micheal. You can create a common procedure to store the information in a table the last activity of the user or button used. When you are getting into any form, you can retrieve the same information and enable the button visible as previously chosen option. Remember, while storing data to a table, only save the last activity and delete all previous records of the same form. Thus would get easy access or can retrieve the last used information from the table instead of complicated queries.

If your project is too large/complex for you to fulfill Michael's request for more info, why not create a new small project with 3 or 4 Forms on it.
Add a bit of code to get it navigating similar to your larger project, and then post the code here for us, and a description of what extra you need. I am sure we can get our teeth into that, and come up with a solution for you.
Rob

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.