- Joined
- Nov 3, 2009
- Messages
- 2
- Reaction score
- 0
I am using in the form the folowing code:
This works like a charm only when i type the store number... when i use the last record store number (it is completed automaticly as I wanted, I just hit Enter), the dlookup doesn't work anymore...
I need the number of the store to be automaticly updated after the last record i entered, then the manager name looked up after the store number.Private Sub Store_AfterUpdate()
Me![Store].DefaultValue = Me![Store].Value
Me![Manager] = DLookup("Manager", "Actual Managers", "Store = " & Me![Store])
End Sub
This works like a charm only when i type the store number... when i use the last record store number (it is completed automaticly as I wanted, I just hit Enter), the dlookup doesn't work anymore...