Hi,
I have form listing all appointments on a specified date (or set of dates) and a "cmdOpen" button which opens the appointment details form and closes the appt list form. I would like to set it up so when the user reopens the appt list form, the focus is returned to the same spot on the appointment list form. I have tried two methods:
1) Set a bookmark and try to return to the bookmark. The code looks to see if a bookmark exists and goes to that record if so:
If Nz(gblBookmark, 0) <> 0 Then
rst.Bookmark = gblBookmark
End If
2) Look for the appointment ID (BIC):
If gblBIC <> "" Then
rst.MoveFirst
Do Until rst!BIC = gblBIC
rst.MoveNext
Loop
End If
Both of these procedures find the appropriate record (unless the ordering has changed- then the bookmark method may off a record or two), but unfortunately, the other records are hidden. I still what to display all the records, I just want the focus on the correct record. How can I accomplish this?
Thank you very much,
Chris
I have form listing all appointments on a specified date (or set of dates) and a "cmdOpen" button which opens the appointment details form and closes the appt list form. I would like to set it up so when the user reopens the appt list form, the focus is returned to the same spot on the appointment list form. I have tried two methods:
1) Set a bookmark and try to return to the bookmark. The code looks to see if a bookmark exists and goes to that record if so:
If Nz(gblBookmark, 0) <> 0 Then
rst.Bookmark = gblBookmark
End If
2) Look for the appointment ID (BIC):
If gblBIC <> "" Then
rst.MoveFirst
Do Until rst!BIC = gblBIC
rst.MoveNext
Loop
End If
Both of these procedures find the appropriate record (unless the ordering has changed- then the bookmark method may off a record or two), but unfortunately, the other records are hidden. I still what to display all the records, I just want the focus on the correct record. How can I accomplish this?
Thank you very much,
Chris