J
juicegully
I have two forms, AllEmployees and OneEmployee. If on the AllEmployees form
a user is at a record with the textbox, say "Joe", the user hits the command
button and OneEmployee opens showing Joe's record. AllEmployees closes (so
only OneEmployee is open). If the user goes back to AllEmployees, I'd like
the user to be at Joe's record but still able to scroll through all the other
records (so I can't filter) but I am stuck on how to do this.
At first I thought of using DoCmd.GoToRecord but I need the offset which I
don't know how to calculate. Also, I thought of using the record number when
I saw the navigation buttons showing me the record number but I don't know if
there's a property for this. Then I began looking into using OpenArgs but if
my OpenArgs is "Joe" I don't know a function like GoToRecord that uses some
sort of link other than offset.
Thanks in advance.
a user is at a record with the textbox, say "Joe", the user hits the command
button and OneEmployee opens showing Joe's record. AllEmployees closes (so
only OneEmployee is open). If the user goes back to AllEmployees, I'd like
the user to be at Joe's record but still able to scroll through all the other
records (so I can't filter) but I am stuck on how to do this.
At first I thought of using DoCmd.GoToRecord but I need the offset which I
don't know how to calculate. Also, I thought of using the record number when
I saw the navigation buttons showing me the record number but I don't know if
there's a property for this. Then I began looking into using OpenArgs but if
my OpenArgs is "Joe" I don't know a function like GoToRecord that uses some
sort of link other than offset.
Thanks in advance.