Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want to open form from list, after form closed, refresh list then move

Status
Not open for further replies.

bistec

Technical User
Dec 12, 2001
16
AU
Long discription I know but...

I have a form that returns a list of records
via SQL in VBA. User can dbl-click to open
form with full details update, edit etc.

After details forms is closed, the list does a refresh
to show changes.

What I would like to do is set a bookmark and return
to that bookmark after list is refreshed.
 
private sub form_UnLoad(cancel as integer)
'This is procedure of your form with full details update
dim frm as form
dim tempVal

set frm=forms("CallFormName") 'Form name which called form with full details update
tempVal=frm!lstList 'Current value of list on form which called form with full details update
frm!lstList.requery
frm!lstList=tempVal
end sub

Aivars

 
thanks for that.

I ended up fixing the problem by
setting a bookmark by before I
requery the form, then calling that
bokkmark back again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top