Hello:
I have a bit of a tricky dilemma, and I'm not sure how easy this is to solve...
Here's what I am working with:
I have a form that executes a search of Client Names and File Numbers.
The form record source is based on two tables that are linked in a 1-1 relationship based on a simple ID/primary key value.
The form works fine. The end-user types in the name or the file number and presses a search button to locate those records.
I then use a FILTER to display those records only.
However, I'd like to change my SHOW ALL RECORDS filtering button to be able to retain the current filtered record I'm currently viewing/editing so that it "stays" at that position when I return to to the "all records" display.
As many of you know, when you reset filtering on a form, the record number value jumps back to 1. I don't want this to happen if I can avoid it.
I need to be able to figure out a way to LOOKUP the internal counted record number/position based on this searched value as if it is/was part of a full recordset of ALL items in the table.
And this value is NOT directly stored or available in the table per se, so doing a conventional DLookup is not really workable, however the number itself is consistent if one is looking at ALL records, so this shouldn't really be that hard once one knows how to do it.
Maybe there is a built in property or method function I can use for this instead?
If I can get this numeric record position value, then I can use DoCmd.GoToRecord to simply jump to this record when I use the ShowAllRecords method.
I'm not changing the sorting parameters or anything fancy, the records themselves will always follow the same display order.
Is this record position number lookup possible without getting into anything too involved?
All ideas/suggestions welcome, involved or not...
Thanks,
marcus101
Access/SQL/XML Developer
Ottawa, Canada
I have a bit of a tricky dilemma, and I'm not sure how easy this is to solve...
Here's what I am working with:
I have a form that executes a search of Client Names and File Numbers.
The form record source is based on two tables that are linked in a 1-1 relationship based on a simple ID/primary key value.
The form works fine. The end-user types in the name or the file number and presses a search button to locate those records.
I then use a FILTER to display those records only.
However, I'd like to change my SHOW ALL RECORDS filtering button to be able to retain the current filtered record I'm currently viewing/editing so that it "stays" at that position when I return to to the "all records" display.
As many of you know, when you reset filtering on a form, the record number value jumps back to 1. I don't want this to happen if I can avoid it.
I need to be able to figure out a way to LOOKUP the internal counted record number/position based on this searched value as if it is/was part of a full recordset of ALL items in the table.
And this value is NOT directly stored or available in the table per se, so doing a conventional DLookup is not really workable, however the number itself is consistent if one is looking at ALL records, so this shouldn't really be that hard once one knows how to do it.
Maybe there is a built in property or method function I can use for this instead?
If I can get this numeric record position value, then I can use DoCmd.GoToRecord to simply jump to this record when I use the ShowAllRecords method.
I'm not changing the sorting parameters or anything fancy, the records themselves will always follow the same display order.
Is this record position number lookup possible without getting into anything too involved?
All ideas/suggestions welcome, involved or not...
Thanks,
marcus101
Access/SQL/XML Developer
Ottawa, Canada