Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
How to use a stored path
Robert 
   
12 years ago
Hi Alex, yes, one field is calculated on that form (it's a calculator - needed because it's a 8" touch-screen pad and the built-in keypads are too big); the other path is passed on from another form, so it deposits the calculated value to the right form (several forms will use the keypad form.)
In short touch the control on CustOrderF brings up the CalcF, when the ok on CalcF is pressed the value is passed back to the CustOrderF.
Hopes this makes sense!


Reply from Alex Hedley:

I did something similar to this in a db a few years back.
I had a Form that I wanted to choose a value for (combo) and it opened up this helper Form.
I wanted to store which Combo had opened the Form so I created a hidden Field on the Helper Form (i.e. your Calculator) called txtReferrer.

Private Sub cboX_DblClick(Cancel As Integer)
    DoCmd.OpenForm "frmHELPER"
    Forms!frmCHOOSE!txtReferrer = "cboX"
End Sub

Then when I had chosen the value pass it back:
Private Sub cmdAddToCHOOSE_Click()
    Forms!frmY(txtReferrer) = YOURVALUE
    DoCmd.Close
End Sub

So the notation you need is
Forms!frmY(txtReferrer) = YOURVALUE

Do you see how it differs from FORMS!FORMNAME!FIELD instead its FORMS!FORMNAME(FIELD) WHERE (FIELD) can be a variable.

There is probably a better way but this worked at the time.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 10:08:53 AM. PLT: 0s