I am creating web based forms in Infopath that submit data to an Access
database. I would like to have the 'submitted by' field autopopulated by the
user's credentials based on Active Directory. Rather then having them type
their name in, which will create possible inconsistancies in the database, I
want it to cross reference their domain username with Adctive Directory and
put it in the field. I imagine it might be a simple formula such as using the
system time or date, but I am not able to find anything on it. I am using MS
Office Pro 2003 and Exchange 2003 Enterprise Edition.
Franck Dauché - 28 Dec 2005 08:55 GMT
Hi Matthew,
Did you try: System.Environment.UserName in C# (Code Behind).
For a simple call to AD, look at:
http://www.infopathdev.com/webstore/detail.aspx?itemid=18
Regards,
Franck Dauché
> I am creating web based forms in Infopath that submit data to an Access
> database. I would like to have the 'submitted by' field autopopulated by the
[quoted text clipped - 4 lines]
> system time or date, but I am not able to find anything on it. I am using MS
> Office Pro 2003 and Exchange 2003 Enterprise Edition.