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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -