krishnanhemanth
Registered User.
- Local time
- Today, 12:50
- Joined
- Jun 12, 2009
- Messages
- 115
hi all
iam stuck with dlookup again
its pretty plain, but iam not able to get through
i user fosusername() to detrmine the loginname on all forms
i have a table---- tblemployees with the following fields
empid
strempname
emppassword
accesstype
straccessno
i want the straccessno to be displayed on all the forms ( criteria is --- fosusername = strempname)
i put a text box on the form and gave this value
=DLookUp("[straccessno]","tblemployees","[strempname]=" & "'" & [fosusername] & "'")
i tried this also
=DLookUp("[straccessno]","tblemployees","[strempname]=" & "[fosusername]")
it gives me "#Name?"
please help
iam stuck with dlookup again
its pretty plain, but iam not able to get through
i user fosusername() to detrmine the loginname on all forms
i have a table---- tblemployees with the following fields
empid
strempname
emppassword
accesstype
straccessno
i want the straccessno to be displayed on all the forms ( criteria is --- fosusername = strempname)
i put a text box on the form and gave this value
=DLookUp("[straccessno]","tblemployees","[strempname]=" & "'" & [fosusername] & "'")
i tried this also
=DLookUp("[straccessno]","tblemployees","[strempname]=" & "[fosusername]")
it gives me "#Name?"
please help