Solved

Referencing controls within navigation forms

Posted on 2014-03-18
9
210 Views
Last Modified: 2014-03-22
I am going crazy trying to find a way to reference a control within navigation forms

I have a two forms one called weekly lists and one called listbulk the list bulk form has a control on it called teach.

I have tried every connotation

[Forms]![weekly lists]![ListBulk].[Form].[teach]

I start with a form called menu I click a tab that opens another navigation form called weekly lists. On the weekly lists navigation form I click a tab  that opens a form called listbulk and I have a control on that form called teach.

driving me mad!

Tricia
0
Comment
Question by:tmckeating
  • 5
  • 4
9 Comments
 
LVL 22

Expert Comment

by:rspahitz
ID: 39937825
Have you tried just directly referencing the form?
First, make sure the form you want to reference is open (otherwise you'll need code to open it and show it.)
Next see if you see it in VBA by starting to type it's name then pressing the Ctrl+J key combination.  If it does not show up in the list, then the name may not be what you expect.
0
 

Author Comment

by:tmckeating
ID: 39937919
I am sorry but I don't know how to do what you suggest as my VB knowledge is very poor.  I update data using an append query with this in the query

Teach: [Forms]![listbulk].[teach]

 where teach is a control on the listbulk form but as soon as I put this form within a navigation form it stops working

Tricia
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 39938099
No problem not knowing about VBA...can't be an expert in everything :)

It seems to me that you may be hitting a context problem, where the reference gets lost when you move it to the navigation form.

Did you create the navigation form or was it an Access wizard?  Since Access uses many different terms that sometime mean the same thing, I want to make sure we're referring to the same things.

Also, did you build this, [Forms]![listbulk].[teach], with the query builder?  You may want to try the same thing from the navigation form to link over to the form and get the control.  You may find that the reference is a bit different.
(I don't have Access on this machine so I can't try it at the moment.)
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 22

Expert Comment

by:rspahitz
ID: 39939901
Oddly enough, I just had a very similar problem yesterday, and removing the prefixes solved the problem. (Of course, there was an appropriate reference and it used a lookup to the information needed.)

Have you tried replacing
[Forms]![weekly lists]![ListBulk].[Form].[teach]

with

[weekly lists]![ListBulk].[Form].[teach]

or something like that?
If that doesn't work, I''d use the query builder to try to re-build it.
0
 

Author Comment

by:tmckeating
ID: 39941921
Finally this worked

=[Forms]![Menu]![menu].[Form]![listbulk].[Form].[Teach]
0
 

Author Comment

by:tmckeating
ID: 39947351
I've requested that this question be closed as follows:

Accepted answer: 0 points for tmckeating's comment #a39941921

for the following reason:

Found the answer myself after trial and error
0
 
LVL 22

Accepted Solution

by:
rspahitz earned 250 total points
ID: 39944053
How did you solve that?  It seems that your answer would be useful in the archives rather than having this deleted, and if any of my suggestions (e.g. Query Builder) helped get you there then credit should be given.
0
 

Author Comment

by:tmckeating
ID: 39945839
I don't understand the question
0
 
LVL 22

Expert Comment

by:rspahitz
ID: 39946711
The question is how you came to your solution?  What process did you use to come up with that?
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question