[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Referencing controls within navigation forms

Posted on 2014-03-18
9
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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 750 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

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

656 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