If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
updating sort order if index changes
I am having a problem with my forms. I have a database with familyID as the sort order. If I change the familyID, the data is not re-sorted until I exit the form and re-enter... so the record still appears in the same place as before. Is there a way to get the data to resort after the indexed field is changed? (FYI, this is not a key index, because there are duplicates)
|
#2
|
|||
|
|||
updating sort order if index changes
Requery the form to force it to reload the records in the correct order
without closing. Note that this will throw you back to the first record. If you wanted to be at the same record again after the requery, save the primary key value into a variable, requery, then FindFirst in the RecordsetClone of the form. -- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "KB" wrote in message news I am having a problem with my forms. I have a database with familyID as the sort order. If I change the familyID, the data is not re-sorted until I exit the form and re-enter... so the record still appears in the same place as before. Is there a way to get the data to resort after the indexed field is changed? (FYI, this is not a key index, because there are duplicates) |
Thread Tools | |
Display Modes | |
|
|