can anyone help me understand and fix why main ID is auto changing when lookupID is populated?
i have two tables tblCategory and tblCodes, relationship is 1 tblCategory to many tblCodes
main form "fCodes" - macro = On Load = gotoRecord ,, New
LookupID text box = "txtLookupID"
combo box which is looking for category in tblCategory "cmbCategoryLooup"
sql(SELECT [tblCodesLookup].[ID], [tblCodesLookup].[Category] FROM tblCodesLookup ORDER BY [Category]; )
cmbCategoryLookup after update
Private Sub cmbCategoryLookup_AfterUpdate()
Me.txtLookupID = Me.cmbCategoryLookup
End Sub
"txtLookupID" is populating correct field from tblCategory.ID
my problem is when I select from cmbCategoryLookup combo box, ID field from tblCodes is updated as well and i need this to be new record so for ID to stay "(new)"
can anyone please advise?