This article was previously published under Q207836
Moderate: Requires basic macro, coding, and interoperability skills.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Query: qryAutoLookup ------------------------------------------------------- Type: Select Query Join: Categories.[CategoryID] <->; Products.[CategoryID] Field: ProductID Table: Products Field: Product Name Table: Products Field: CategoryID Table: Products Field: CategoryName Table: Categories
Dim rs as Recordset
Private Sub Form_Current()
Set rs = Me.RecordsetClone
rs.Bookmark = Me.Bookmark
End Sub
Name: OldCategory Caption: Old Category Name
Private Sub OldCategory_Click()
MsgBox rs![CategoryName]
End Sub
Name: OldCategoryName Caption: Old Category Name
Private Sub OldCategory_Click()
MsgBox Me![CategoryName].OldValue
End Sub
Keywords: KB207836, kbprb, kberrmsg