473,407 Members | 2,306 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Refresh a subform within a subform within a Form

I have a "Dashboard" in a tool I am building which has a list of different buttons. Clicking on each button will display different subforms which show up in a window to the right of the menu.

One of these "Screens" has a subform which needs to be refreshed after updating one of the other "Screens." The problem is, the screens do not refresh when switching between screens with the menu buttons.

Is there a way to have the subform within the subform within my Dashboard to refresh with a button pressed on my Dashboard?

I have attached a screenshot of my Dashboard....

Thanks.
Attached Images
File Type: jpg untitled.JPG (21.8 KB, 446 views)
Mar 12 '08 #1
5 3308
NeoPa
32,556 Expert Mod 16PB
You may find Referring to Items on a Sub-Form helpful :)

You will need to call a ReQuery of the relevant subform.
Mar 13 '08 #2
I have tried using the External Syntax as described in your thread. After updating a combobox on one of the SubForms (Form1 for example) within my dashboard I need it to update the subform within Form1... to do this I have the following code:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Dim strQuery As String
  3.  
  4. strQuery = "SELECT * FROM TableName WHERE Criteria = " & combobox_Value
  5.  
  6. Forms!Dashboard.Form1.subfrmWithinForm1.RecordSource = strQuery
  7.  
  8. Forms!Dashboard.Form1.subfrmWithinForm1.Requery
  9.  
I get the following error at the .RecordSource Line:

"Object Doesn't Support This Property or Method"

I have assigned a RecordSource to a SubForm Before, so I am not sure of the problem. Any suggestions?

Thanks for the help.
Mar 13 '08 #3
NeoPa
32,556 Expert Mod 16PB
At a quick glance (all I have time for at the moment) I would guess that you are calling a ReQuery on the subform control on your form rather than the form that is in it.

This is covered in the HowTo so have another look. If you're still not able to get it to work then post back but include all the relevant details (names etc) of the items and I'll see what I can manage for you.
Mar 13 '08 #4
I figured it out. I just used the "Me!subform" reference and it worked. I think I was trying to make the code more complicated than it needed to be. Thanks for the help.
Mar 13 '08 #5
NeoPa
32,556 Expert Mod 16PB
Easily done in complicated areas, and this is certainly one of those. Congratulations for finding the solution. Even better that it's a simple and neat solution :)
Mar 13 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: P Mitchell | last post by:
Hello I would like someone to be able to help with the updating of data in a lookup list in a subform. In short, is their a VB instruction that is the equivalent of performing the action of...
2
by: John Baker | last post by:
Hi: I have a Pop Up form that involves a main form and sub form. The sub form has the results of a query on the main form. I need to automatically perform exactly he same action that takes...
6
by: Tim Marshall | last post by:
Here's the situation. A form, frmSetUp, with a subform control called subExplain with a source object form frmSetUpSubDefineSides. The source object is a bound form, displaying a few records, no...
5
by: Andrew Chanter | last post by:
I have a situation where I am using an unbound dialog form to update data in an Access 2002 split back end / front end scenario. The data update is done via an ADO call (direct to the back end...
1
by: hqdtech | last post by:
how to refresh webform from other webform I have 2 webform, i want if webform A was close then webform B wil refresh. And the problem second: how to catch packet on the network in C#. ...
4
by: midlothian | last post by:
Hello, I have conditional formatting set up on a subform based on a calculated value in the underlying query. For instance, if Sales are >$1000, the query displays "Yes," otherwise it displays...
1
by: Stinky Pete | last post by:
Hi everyone, I have been updating a file that uses a main form that contains a subform (as a datasheet). The main form really does not do anything on opening except maximizes to the users...
3
by: ApexData | last post by:
COMBOBOX REFRESH DILEMMA ' I have been working for hours trying to figure out how to requery a combobox in a subform, from a Popup form ' that this subform had launched. Basically, I designed...
5
by: kknb0800 | last post by:
Hi, I'm new to Access but I've searched for a long time for a solution but to no avail. What I'm trying to do is create an address database whereby the user is able to enter addresses through...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.