wrong record updated

  • Thread starter Thread starter Walter
  • Start date Start date
W

Walter

I have a details subform in continuous view. I have code to set the default
value of combo2 after updating combo1. When testing the code, combo2 default
value was set correctly, however it was set in a new record, not the current
record. What's going on?
Here's my code:
Me.DeliveringDriver.DefaultValue = _
DLookup("DriverID", "tblDrivers", "AssignedTruck = '" &
Me.DeliveringTruck & "'")
 

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

Back
Top