Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access 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
 
Old February 9th, 2005, 07:52 AM
Authorized User
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default Capture USER ID in record

What is the method for the default value I can use in the table schema for the "USER" field? I am attempting to preload the USER ID after a USER signs into the application so they do not have to add the value.

Thanks.
__________________
Mike
 
Old February 9th, 2005, 10:29 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

www.ehow.com/how_12388_define-default-value.html

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old February 9th, 2005, 03:49 PM
Authorized User
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thank you for the link however that would appear to be for static values. My requirement would involve getting the USER ID (currently signed into the application) so it would not be a static default value and loading it into the record. I believe that there is a method that calls the USER (Current USER) but I do not know that method. That is what I believe that I need to insert in the default value for the field.

Mike
 
Old February 9th, 2005, 03:56 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

Mike,
Create a text box on your opening form. Set it's control source to
CurrentUser()

Then use the value of of your text box to update your table.

Kevin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Session ID swapping from user to user... greenwar VS.NET 2002/2003 3 September 7th, 2007 08:44 AM
capture user login name Seeker55 Javascript How-To 2 February 23rd, 2006 12:16 PM
Record ID sinner Classic ASP Databases 12 February 28th, 2004 03:36 PM
"How can i capture SID or machine id" javauniverse Classic ASP Basics 0 February 25th, 2004 02:17 PM
Insert new record ID levinho Classic ASP Databases 5 January 14th, 2004 12:03 PM





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