Greetings,
To enhance the UI of the application I am building, I decided to locate the newly added record on the list of records form. To force that "record list" form to jump to the newly added record, I am using: DoCmd.FindRecord as in:
Since I am using Surrogate Keys in my database, the ID is just a number.
How can I limit the FindRecord API to only searching the ID column looking for the match?
What I have coded at least works, but I would like to lock down the FindRecord() call to only searching through the ID column.
And I have an index on that column of the FE temp table. I assume FindRecord() will use indexes if provided?
Thanks!
To enhance the UI of the application I am building, I decided to locate the newly added record on the list of records form. To force that "record list" form to jump to the newly added record, I am using: DoCmd.FindRecord as in:
Code:
'Update the Form UI with the table contents
Me.RecordSource = "tmptblqry_products"
Me.Refresh
'Locate the record if we received a valid ID
If intRecordID > 0 Then
Call DoCmd.FindRecord(intRecordID)
End If
How can I limit the FindRecord API to only searching the ID column looking for the match?
What I have coded at least works, but I would like to lock down the FindRecord() call to only searching through the ID column.
And I have an index on that column of the FE temp table. I assume FindRecord() will use indexes if provided?
Thanks!