Dlookup in form doesn't work when I validate a defaultvalue

Joined
Nov 3, 2009
Messages
2
Reaction score
0
I am using in the form the folowing code:
Private Sub Store_AfterUpdate()
Me![Store].DefaultValue = Me![Store].Value
Me![Manager] = DLookup("Manager", "Actual Managers", "Store = " & Me![Store])
End Sub
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.

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top