Wrox Programmer Forums
|
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
 
Old November 24th, 2005, 01:40 AM
Authorized User
 
Join Date: Nov 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access and Vb

Is there any way to pass login id to another form or use it as globally so that i can store that id and other data that is entered by memger who is logged in.

Any Idea?

Best Regards,
Vivek.
__________________
Best Regards,
Vivek.
 
Old November 24th, 2005, 01:54 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

I have two options - but I am not sure if either is recommended.

1 - Create a global variable before any procedures/subs or functions inside a module - If memory serves correct, you could declare it as Global or Public.

2 - When you call the next form, pass the login variable in the OpenArgs section of the OpenForm command. I think you can then reference it by Me.OpenArgs - The is probably a better example somewhere online if you look for info on the OpenArgs thing.

Hope that helps,

Mike

Mike
EchoVue.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Access Ms-Access WorkGroup tables using VB kishoremf BOOK: Professional Crystal Reports for VS.NET 1 April 29th, 2007 02:05 AM
Access Report from VB brawny4 Visual Basic 2005 Basics 1 April 5th, 2007 04:46 PM
Access/ vb surendran VB How-To 0 August 29th, 2006 01:01 AM
Programming in Access Using VB bell Access VBA 7 November 4th, 2004 06:12 PM





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