Can I use a variable for the expression in a DLookup function?
For example, I would like to use the value from a textbox to determine which field is used:
myStart = Me.CurrentStartPoint
Mileage = DLookup("['myStart']", "MileageChart", "[Finish] =" _
& Forms![frmDailyMileage]!myFinishPoint)
For example, I would like to use the value from a textbox to determine which field is used:
myStart = Me.CurrentStartPoint
Mileage = DLookup("['myStart']", "MileageChart", "[Finish] =" _
& Forms![frmDailyMileage]!myFinishPoint)