Solved

Referencing controls within navigation forms

Posted on 2014-03-18
9
207 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now