database - Autopopulate a field in a form based on what user is logged in -


i've created access database using access 2007 1 of teams work , i'm new access help. database being used log jobs engineers have login system user selects name drop down , enters password, , depending on access levels directed own user menus etc. once user has logged in click on job sheet button direct them list of jobs raised here click on new , pop of job sheet can enter details call pops want in job sheet name auto-populate in field labelled user, how user has logged in name auto populate in field once have accessed it.

you might want check out "onload" property of form. go properties section of job sheet , click on "on load" event. select vba code. type following:-

me.fieldname = [forms]![firstformwherelogindropdownpresent].dropdownname.value

hope helps


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -