General information
Category:
Forms & Form designer
>When I open a form I want it to go to a specific record number that user specifies just before the form is opened. Any Ideas on how to do this I think that I have tried everything. Putting go to recno in the init event of the data environment of any other init event dosen't work. I can issue a browse after the goto command and the browse goes to the correct recno..Thanks fot the Help today, and All have a Happy Halloween!!!!!!!!
This is a little different from the suggestions from Steve and Arnon -- it might (or might not) be appropriate for what you are trying to do.
You might try putting the GO statement in the form's Load() method. Load() fires before the form's Init(), and this will allow you to go to the specific record you want before anything else happens. My guess is that your current approach is failing because the Init() methods for the objects on the form (text boxes, etc.) are firing before your record is selected.
Hope this helps.
Bill
Previous
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