troubleshooting Question

Pass Variable Form Name to another form in Access

Avatar of 220-221
220-221 asked on
VBAMicrosoft Access
16 Comments1 Solution454 ViewsLast Modified:
I have three forms.
A, B, C On which all the field names are standard
I have a second form (NOINE) which I would only like to code once.
When A is open and I push a button I want NOINE to open and reference fields on form A
When B is open and I push a button I want NOINE to open and reference fields on form B

How do I pass the form name as a variable so in my text fields on Form Noine I am effectively referencing it like this

[Forms]![FormA]![Standard Field Name Across all forms A, B, C]

[Forms]![Whatever Variable Name I Pass from the button]![Standard Field Name Across all forms A, B, C]
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 16 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 16 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros