sql - Access 2010 set variable to single field of a table -
i feel should easy, haven't been able come clear answer after searching off , on day.
i have users table has email addresses in it.
i have combo box references table.
all want do, set email address field of selected user string, can things that.
just trying string sql query :
"select emailaddress tblusers id = " & me.cmbuser.value & ""
can point me in right direction here?
you can use combo box return email address after user select user list.
assume user tblusershas user , email fields
set combo box property:
1.row source = select user, email tblusers
2.column count = 2
3.bound column = 0 (0 first column , 1 second column email)
4.column width = x";0" (x combox box width)
you can email address me.combobox.column(1). both me.combobox.value , me.comboxbox.column(0) selected user
Comments
Post a Comment