Updating Navigation subform from another form

MHutcheson

Registered User.
Local time
Today, 14:57
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
 
Hi Paul,

It is located on another pop up form.

Regards,

Michael
 
Try this.

Forms!Mainform!Subform1.Form!Subform2.Form.Requery
 
I've tried this:

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

But it says it cannot find 'frmJobHeadsubform'

Check spelling and it is correct...
 
Try using the Expression builder. It makes referencing much easier.
 
Ah yes, but you can't access the expression builder from VBA in Access 2010
 
Yes, get what you want from the expression builder then paste it into VBA :rolleyes:
 
When I use the expression builder and drill down loaded forms etc, it just displays a blank window in Expression Categories.
 
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

Back
Top Bottom