Refresh form then go back to specific record on subform when closing a second form form 
Author Message
 Refresh form then go back to specific record on subform when closing a second form form

Hello everyone,

I have a form with a sub form which displays a few fields.  The user can
click a details button which opens another form for viewing all of the
fields.  What I'd like to be able to do is when the user closes the second
form, refresh the "parent" form, then redirect the sub form back to the
record it was on prior to the refresh.

Is there a graceful way to do this?

Thanks much,

Ken



Wed, 08 Oct 2003 02:17:53 GMT  
 Refresh form then go back to specific record on subform when closing a second form form
Ken,

The general idea is to save the record's id field in a
variable, requery the form, then use the form's
RecordsetClone to do a FindFirst for the id save in the
variable and finally, set the form's Bookmark to the
RecordsetClone's Bookmark.  The details depend on your table
design, what kind of recordsets you're using, etc.

Marsh

Quote:

>Hello everyone,

>I have a form with a sub form which displays a few fields.
The user can
>click a details button which opens another form for viewing
all of the
>fields.  What I'd like to be able to do is when the user
closes the second
>form, refresh the "parent" form, then redirect the sub form
back to the
>record it was on prior to the refresh.

>Is there a graceful way to do this?

>Thanks much,

>Ken



Wed, 08 Oct 2003 04:36:45 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. On Close form not going back to the original form

2. Refreshing subform data when new subform records inserted by code behind the main form

3. Go to Second record in subform with code

4. open a form/subform in a 1 to many at a specific record in subform

5. Refreshing Subform from Second Subform

6. going to specific record on subform

7. Going to a specific record on a subform.

8. Going to a specific record on a subform.

9. Opening second form to a specific record

10. No Current Record when going back to subform


 
Powered by phpBB® Forum Software © phpBB Group