Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 7th, 2006, 02:27 AM
Authorized User
 
Join Date: Feb 2006
Location: , , Singapore.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access ADP - Getting Current User Name

Hi, I am building an application using Access ADP, interfacing to MS SQL Server 2000.

How do I retrieve the current logged in use name?

Previously, using Access MDB, I can simply call CurrentUser() as I have a workgroup set-up.

However, with Access ADP, I cannot use a workgroup and using CurrentUser() will return the default "admin".

Scripts82
__________________
Scripts82
Reply With Quote
  #2 (permalink)  
Old March 8th, 2006, 09:31 AM
Authorized User
 
Join Date: Mar 2006
Location: Bratislava, , Slovakia.
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

User SQL Server function CURRENT_USER.

Peko

Reply With Quote
  #3 (permalink)  
Old March 8th, 2006, 08:38 PM
Authorized User
 
Join Date: Feb 2006
Location: , , Singapore.
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks...
found that in the list of transact sql reference also... thanks anyway!

Scripts82
Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How Can I Get the Name of the Current User? BrianWren Beginning VB 6 1 March 27th, 2007 12:28 PM
How Can I Get the Name of the Current User? BrianWren Pro VB 6 0 March 27th, 2007 11:42 AM
.Adp(Access) from not using "Instead of Triggers' ps_kaushik Access 3 March 17th, 2005 11:40 PM
Current user type dotnetprogrammer VS.NET 2002/2003 0 February 1st, 2005 06:20 AM
current user schockp Oracle 2 November 12th, 2003 05:18 AM



All times are GMT -4. The time now is 02:48 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.