ms access - Dlookup dependant on Label/Textbox -
i trying figure out how can make dlookup function associated label , value of label.
my example is:
=dlookup("[officeof]","tbllocationmstr","[locationcode]=label content here") and on top of that, need add mid() command this:
=dlookup("[officeof]","tbllocationmstr","[locationcode]=mid("label content here")")
your textbox have set of controls if label attached.
=dlookup("[officeof]","tbllocationmstr","[locationcode]='" & me.textbox1.controls(0).caption & "'") you have determine name of textbox on form. used textbox1 example.
Comments
Post a Comment