A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Default Value-Complicated



 
 
Thread Tools Display Modes
  #1  
Old May 6th, 2010, 07:08 PM posted to microsoft.public.access.queries
Iram
external usenet poster
 
Posts: 122
Default Default Value-Complicated

Hello,

I have a Module that pulls the username of the person logged into the PC (if
you would like to see this code, let me know). I have a table called
tbl_WorkerIDs with all my staff's login Ids in a field called "LANIDs" and I
have another field in the same table called "CSEIDs". Each person has a LANID
and a CSEID.

In a form I have a combobox field called CSEWorkerID. This combobox feeds on
the above table. For the Default value of this combobox I need the CSEID to
pull not the LANID which is the userid logged into the pc.

On this CSEWorkerID combobox currently I have as the Default Value as
=fOSUserName()
which is pulling the locally logged in ID.
How can I change this default value to map over to the person's CSEID?
Is it possible?

Your help is greatly appreciated.


Iram/mcp
  #2  
Old May 14th, 2010, 03:01 PM posted to microsoft.public.access.queries
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Default Value-Complicated

Iram wrote:
Hello,

I have a Module that pulls the username of the person logged into the PC (if
you would like to see this code, let me know). I have a table called
tbl_WorkerIDs with all my staff's login Ids in a field called "LANIDs" and I
have another field in the same table called "CSEIDs". Each person has a LANID
and a CSEID.

In a form I have a combobox field called CSEWorkerID. This combobox feeds on
the above table. For the Default value of this combobox I need the CSEID to
pull not the LANID which is the userid logged into the pc.

On this CSEWorkerID combobox currently I have as the Default Value as
=fOSUserName()
which is pulling the locally logged in ID.
How can I change this default value to map over to the person's CSEID?
Is it possible?

Your help is greatly appreciated.

Iram/mcp

you could use a DLookup and use the fOSUserName as the criterion.

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/201005/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.