Access VBADiscuss 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
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.
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.