Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old March 7th, 2006, 03: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
  #2 (permalink)  
Old March 8th, 2006, 10: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

  #3 (permalink)  
Old March 8th, 2006, 09: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


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 18th, 2005 12:40 AM
Current user type dotnetprogrammer VS.NET 2002/2003 0 February 1st, 2005 07:20 AM
current user schockp Oracle 2 November 12th, 2003 06:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.