default value to be windowss user initials

what is the code to set a field value to the logged in user's initials?
(the one I'm looking for is something stored in MS windows as part of the 
user's account -I think; not one associated with Access)

thanks in advance,

1/30/2008 3:01:04 PM
access.formscoding 7493 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 59

Here it is!


This command will return a string containing the Windows username. 

"Mark Kubicki" wrote:

> what is the code to set a field value to the logged in user's initials?
> (the one I'm looking for is something stored in MS windows as part of the 
> user's account -I think; not one associated with Access)
> thanks in advance,
> mark
1/30/2008 4:15:02 PM

Similar Artilces:

Visio 2007
The themes in Visio 2007 only allow for the setting of the theme font, NOT the font size or style (bold, italic, etc.). So the question is, when I start a Visio diagram how can I ensure that the starting font size is 12 and not 8 pt, bold and not regular. It appears that there is no way to do this, other than perhaps changing registry values. BTW: I use Visio on both XP and Vista. Peregrine Go to the menu bar > Format > Define Styles. The menu allows you to define a custom style which includes font face, size, etc. HTH Wapperdude "Peregrine Maitland" wrote: > T...

How to change the string value in the registry?
How to change the "string value" in the registry from the code? As there is a functionality in my application that the user can change the "string value" with some GUI. But I m not able to change it as there is a function RegReplaceKey but its only to take the backup of old file and to replace it with new one and even i dont know how to use this functin to suit my case. RegSetValue/Ex() should do it I think. -Seetharam Look at the Registry APIs. Also, take a look at my Registry class on my MVP Tips site. joe On Sun, 26 Aug 2007 23:59:33 -0700, HItz <hitesh_im...

Error when adding new user to CRM
Hello all, I need to add 5 new users into CRM. When I complete the first form for the user information such as Last name, First name, email address, etc, then click the save button I receive an error page and the following message is logged in the Application log. MSCRM Platform Error Report: -------------------------------------------------------------------------------------------------------- Error: The statement has been terminated. Error Message: The statement has been terminated. Error Details: Details on this error have not been provided by the platform. Source File: Not avail...

SBS Exchange 2003: Create new user in AD but no exchange mailbox #3
I'm using SBS 2003. Exchange server is SP2. When I create a new user using Active Directory, it prompts me about creating a mail box. It says it's creating a mailbox, then it's done. But no mailbox appears. In fact, if I use the Exchange tasks wizard, I can create, delete, and recreate the mailbox--all say successful without an error message. And yet, no mailbox. This is even after I reboot the PC and sent email to the address. Any ideas what's going on? wrote: > I'm using SBS 2003. Exchange server is SP2. > > When I create a new user ...

Getting rid of #value
How am I able to add a column of numbers when one of the numbers in the formula is itself a formula that results in #VALUE (because that number the product of zero times another number)? Thanks First, the product of zero and another number shouldn't be giving you #VALUE!. Your best bet is to fix or bypass whatever is causing the #VALUE! error. If you can't do that for some reason, array-enter (CTRL-SHIFT-ENTER or CMD-RETURN): =SUM(IF(ISERROR(A1:A20),"",A1:A20)) In article <>, "Craig" <>...

Lookup Function in user form
I have a combo box (cboitem1) and a text box (txtprice1). I am using the code below to have txtprice1 fill with the corresponding price the worksheet: Private Sub Cboitem1_Change() If cboItem1 <> "" Then txtprice1.Value = Excel.WorksheetFunction.VLookup(cboItem1.Value, Sheets("Pizzas").Range("A1:B65536"), 2, False) End If End Sub It works perfectly when you enter an existing value in cboitem1. However if 'the user' accidently types a letter that is not the first letter of one of the existing items VB debugging pops up with error &qu...

Excel user information
I am interested in learning about who uses Excel and how they use it. For example, what percentage of users have had formal training; how many use VLookup, or how many build models from scratch. Does anyone know of a source for such information? Thanks. Steve Powell No idea where you would get official stats, if indeed they even exist (Which i doubt), but happy to give you my personal guess:- Formal Training - Less than 1% Use VLOOKUP - Less than 10% Build Models - Depends on definition of what a model is. A couple of cells of data with a formula could be construed as a model, so I...

'Counter' value of the 'Perflib' subkey
I have a program which queries the 'Counter' value of the 'Perflib' subkey in the Windows registry using RegQueryValueEx. It used to work fine but now the debug build of my program is broken on Windows 2008 Server R2. The 'Counter' value is a REG_MULTI_SZ type data and is terminated with two NULL characters. However, I found out for Windows 2008 Server R2, the value returned from RegQueryValueEx has an extra character(0xcdcd) after the two NULL characters, which ends the 'Counter' string value. And that extra character causes my program to fail ...

How do you get the attribute value using XPath in VB.Net 2003?
Hi, How do you get the attribute value using XPath in VB.Net 2003? Many thanks, aushknotes "aushknotes" <> wrote in message > Hi, > > How do you get the attribute value using XPath in VB.Net 2003? > Prefix @ to the name of the attribute value. XmlAttribute attrib = (XmlAttribute)dom.selectSingleNode("/path/@attributeName"); -- Anthony Jones - MVP ASP/ASP.NET aushknotes wrote: > How do you get the attribute value using XPath in VB.Net 2003? ...

XslTransform not excluding default namespace despite exclude-result-prefixes attribute?
I'm writing an xslt in 2003 and in order to get intellisense on the html content I added the default namespace declaration xmlns="". However, even though I also have exclude-result-prefixes="#default" declared the default namespace is still outputted on the resulting document. <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="" xmlns="" xmlns:...

Could Microsoft create a MSPOS user manual?
My customers are asking for one. Guess we were spoiled by RMS Store Operations having one available after Microsoft updated the SMS Commerce manuals. Makes me expect one for MSPOS even though most software no longer has printed manuals. -- Jeff Faul Merchants Solutions ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and t...

retrive value from lookup screen
hi, i hv small problem i make refrence for smartlist (SL)in GP form to enable me open the SL lookup form ,and i add lookup button to open that smart list but i want the retive value from SL to be inserted in text box exist on GP form please help me ...

Adding Hyperlink to multiple values within a cell
My spreadsheet contains a list of people. The cell next to each nam contains multiple numeric values for identifying a specific piece o information. I would like to be able to click on one of those number (value) and a comment window pop up with the information associate with it, or be hyperlinked to the information further down th speadsheet. I want to avoid using multiple cells for this. Is this possible? Thank -- t2tru ----------------------------------------------------------------------- t2true's Profile: View this...

User Template crashes Outlook2007
When I select a distribution template from "User Templates in File System" Outlook crashes, sends error amessage, and reloads Outlook. Can't weem to find the problem. ...

Adding User Name to footer
I have spreadsheets that go out to a number of users, and they make various changes and print out for themselves. The problems is that no-one knows which version to pick up from a central printer. Can I add the user name to the footer. I also have the path and file in the same area. I would like to end up with : User Name printed 'path/file' on 'date' ...

Transferring users from 1.2 to 3.0 upgrade
I am trying to upgrade a 25-user 1.2 installation to a 10-user 3.0 setup. Only 7 of the 25 licenses are being used. When I run the setup, I receive the following message: There are not enough Microsoft CRM 3.0 licenses to include all the users from Microsoft CRM 1.2 in the upgrade. Please add enough licenses to cover all the active users or deactivate some users to match the number of licenses. As I said there are only seven active users, so there shouldn't be a problem. Does anyone know what I need to do to fix this problem? Thanks. Berk; I've never seen the error, but p...

Combo values from query based on form fields
I am setting the values for a combo box in a form(s) via a query that 'filters' the results with criteria based upon the values of other fields on the form. The combo is a field that is bound. However, this is giving all kinds of problems ranging from Access completely crashing to being asked for the parameter values of those criteria fields when closing the form. I have tried making the combo an unbound field and then setting the value of the bound field to that unbound field after update, but that still leads to the same issues. How can I do this? As example - I have a form w...

Cant see Default Public Folders on New 2003 Exchange
Hi We have recently installed a new W2003 Exchange 2003 server into our domain. The domain already had an Exchange 2000 server installed. The default public folders on the Exchange 2000 machine can be seen under ESM and by Outlook clients. We have created an additional new public folder store on the new 2003 server, however, the default Public folders on the new 2003 server cant be seen by mapi clients ie Outlook. Additionally any folder created under the Public Folder tree on the 2003 server under Folders does not appear under the First Storage Group > Public Folder Store > Public Fol...

RMS User Question/Problem
Hello, I Downloaded and installed Microsoft Dynamics RMS, but when I first run it (for the first time) it asks me user ID and password, but have not yet established one, and is the first time I run the program! (Or is it comes with some standard user / default?) User ID: 1 Password: password Robert Armstrong RMS Systems Inc. "F.Misle" <> wrote in message > Hello, > I Downloaded and installed Microsoft Dynamics RMS, but when I first run it > (for the first...

user name and password not being retained in WindowsMail
I have Vista 32bit sp2, IE8 and WindowsMail. I had this problem on my XP/Outlook Express machine and found an answer, but can't find one for WindowsMail. Please note that I have had this set-up for several months and never incurred this problem. Even earlier today everything was working fine. It looks as if I can send messages, but when I click on send/receive button to receive messages I get a screen asking for my username and password. I have it set to remember in 'tools' 'accounts', but it isn't remembering it. Does anyone have a suggestion on how...

Add values in a column according to value in another column
How can I add the values in a column according to values in another column? If there is any value in a row in column B, I want to include the value of the corresponding row in column A. I'm flexible as to whether this is ANY value (i.e. not empty) or greater than zero. Hi Paul Maybe something like this =IF(B1="","",IF(B1>0,B1+A1)) Regards Cimjet "Paul Kaye" <> wrote in message > How can I add the values in a column according to values in another > colu...

How do I make a column be my default column in Access
I need to make my desricption field my default field. How do I do that? Right not it defaults to my items field. me.controlname.setfocus or in macro GoToControl "controlname" Bonnie michelle wrote: >I need to make my desricption field my default field. How do I do that? Right >not it defaults to my items field. -- Message posted via Or, if you don't want to use events, simply set your tab order from the form design view. -- Frank H R...

lookup value based on multiple criteria
Banging my head on this one... can anyone help?? I've got several thousand rows of data in three columns, structured similar to example below. Each set of ID numbers represents a separate contact entry (person) in an address book. FIELDNAME could include one or more of about 200 fields, and VALUE may be blank. ID FIELDNAME VALUE 1 FirstName Bob 1 LastName Smith 1 Company Tech Smith, Inc. 2 LastName Johnson 2 Company <blank> 2 FirstName Jim I've got a second sheet set up with all of the 200 possible FIEL...

e2k3 sp2: Unknown user name or bad password error
We have an exchange cluster with two nodes that runs exchange 2003 SP2 on windows 2003 Sp1 ent. For security reasons recently I had to change the password for the account under which I installed exchange - the account is exchservice. Since then I get few of the following messages in the security log on the server - any idea how can I stop this? Event Type: Failure Audit Event Source: Security Event Category: Logon/Logoff Event ID: 529 Date: 09/10/2006 Time: 10:30:00 User: NT AUTHORITY\SYSTEM Computer: EMILYA Description: Logon Failure: Reason: Unknown user name or bad password Us...

Delivery failures to my users
This might be too broad of a question, but one of my users occasionaly will not get emails from the outside world. I've checked the Event Viewer, modified the Diagnostic Logging Levels, but can't find a reason why she's not getting some emails. Below is what her sender got back when attempting to email her. I obviously changed some information to protect the innocent! Our enviornment is: 1 Exchange 2003 Enterprise Front End Server 1 Exchange 2003 Enterprise Back End Server (ispriv and ispub on here) 1 Exchange 5.5 Enterprise We are in the middle of moving mailboxes frmo 5.5 to 2...