[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Referencing controls within navigation forms

Posted on 2014-03-18
9
Medium Priority
?
216 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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

830 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