Updating Navigation subform from another form (1 Viewer)

MHutcheson

Registered User.
Local time
Today, 23:27
Joined
Sep 3, 2013
Messages
23
Hi all,

I'm using Access 2010 and need to update a sub form in a form that is within a navigation form. So it goes:

Navigation Form > Main Form > Subform

How do I do this? I've attatched the following to a click event of a cmd button but I just can't get it to work:

Forms!frmMain.NavigationSubform.Form.frmJobHeadSubForm.Requery

Where am I going wrong?

Regards,

Michael
 

MHutcheson

Registered User.
Local time
Today, 23:27
Joined
Sep 3, 2013
Messages
23
Hi Paul,

It is located on another pop up form.

Regards,

Michael
 

pr2-eugin

Super Moderator
Local time
Today, 23:27
Joined
Nov 30, 2011
Messages
8,494
Try this.

Forms!Mainform!Subform1.Form!Subform2.Form.Requery
 

MHutcheson

Registered User.
Local time
Today, 23:27
Joined
Sep 3, 2013
Messages
23
I've tried this:

Forms!frmMain!NavigationSubform.Form!frmJobHeadsubform.Form.Requery

But it says it cannot find 'frmJobHeadsubform'

Check spelling and it is correct...
 

pr2-eugin

Super Moderator
Local time
Today, 23:27
Joined
Nov 30, 2011
Messages
8,494
Try using the Expression builder. It makes referencing much easier.
 

MHutcheson

Registered User.
Local time
Today, 23:27
Joined
Sep 3, 2013
Messages
23
Ah yes, but you can't access the expression builder from VBA in Access 2010
 

pr2-eugin

Super Moderator
Local time
Today, 23:27
Joined
Nov 30, 2011
Messages
8,494
Yes, get what you want from the expression builder then paste it into VBA :rolleyes:
 

MHutcheson

Registered User.
Local time
Today, 23:27
Joined
Sep 3, 2013
Messages
23
When I use the expression builder and drill down loaded forms etc, it just displays a blank window in Expression Categories.
 

pr2-eugin

Super Moderator
Local time
Today, 23:27
Joined
Nov 30, 2011
Messages
8,494
Can you post a sample DB?

How to Upload a Stripped DB.

To create a Sample DB (to be uploaded for other users to examine); please follow the steps..

1. Create a backup of the file, before you proceed..
2. Delete all Forms/Queries/Reports that are not in Question (except the ones that are inter-related)
3. Delete auxiliary tables (that are hanging loose with no relationships).
4. If your table has 100,000 records, delete 99,990 records.
5. Replace the sensitive information like Telephone numbers/email with simple UPDATE queries.
6. Perform a 'Compact & Repair' it would have brought the Size down to measly KBs..
7. (If your Post count is less than 10 ZIP the file and) Upload it..

Finally, please include instructions of which Form/Query/Code we need to look at. The preferred Access version would be A2003-A2007 (.mdb files)
 

Users who are viewing this thread

Top Bottom