472,969 Members | 2,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Program equivelent of "Records refresh"

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 place when I manually
click "Records/refresh" when I update a field on the main form, but am having trouble
making that happen. Me.Refresh does not do it, and neither do any of the other things that
I have tried. "Records refresh" has the effect of updating the query in the sub form,
based on changes to the main form. This is what I need to have happen programmatically.

Help..Please

John Baker
Nov 13 '05 #1
2 2285
If Me.Refresh was being run from the main form, it would refresh the main
form. The Me keyword refers to the form or report that the code is running
on. To refer to the subform, you first need to refer to the subform control
on the main form, then to the subform.

Example:
Me.ctlNameOfSubformControl.Form.Refresh

If refresh doesn't work, try requery or recalc.

--
Wayne Morgan
Microsoft Access MVP
"John Baker" <Ba******@Verizon.net> wrote in message
news:23********************************@4ax.com...
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 place
when I manually
click "Records/refresh" when I update a field on the main form, but am
having trouble
making that happen. Me.Refresh does not do it, and neither do any of the
other things that
I have tried. "Records refresh" has the effect of updating the query in
the sub form,
based on changes to the main form. This is what I need to have happen
programmatically.

Help..Please

John Baker

Nov 13 '05 #2
Thanks..that works
"Wayne Morgan" <co***************************@hotmail.com> wrote:
If Me.Refresh was being run from the main form, it would refresh the main
form. The Me keyword refers to the form or report that the code is running
on. To refer to the subform, you first need to refer to the subform control
on the main form, then to the subform.

Example:
Me.ctlNameOfSubformControl.Form.Refresh

If refresh doesn't work, try requery or recalc.


Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Udi Zisser | last post by:
Hello, any idea why this does not work? or how do i get this thing to work? <BASE HREF="http://localhost/thedude/"> <META HTTP-EQUIV="Refresh" CONTENT="0; URL=redirect.html"> I'm adding...
2
by: Jerry Boone | last post by:
Funny thing happened today... I thought I was going to be smart and customize my menu's by dragging the Refresh option from the Records menu onto the toolbar in Access 2000. When doing so, I...
3
by: Vic | last post by:
Dear All, I have a database of laboratory records in Access 2000. There is one form which acts as an interface to input experimetal data. This form incorporates information from several tables....
2
by: Bill Cohagan | last post by:
I'm trying out ASP.Net and am currently trying to figure out how to refresh the contents of one frame based on a button click in another frame. The button in question is actually a server side...
1
by: Chumley Walrus | last post by:
I'm trying to use : <META HTTP-EQUIV="Refresh" CONTENT="180; URL=main.aspx"> to refresh a mobile page (made in vs.net with the MMIT) for a page that I need to refresh every 3 minutes, but I...
1
by: IkBenHet | last post by:
Hello, Currently I am using a large input form on a website that is based on ASP and JavaScript. Depending on the values that are filled in by the user the forms does a refresh and makes...
2
by: Totto | last post by:
Hi, I'm doing a server.Transfer to a page with http-equiv="refresh" but when the refresh occurs the page that was doing the Server.Transfer is loaded. Anyone know if there is a way round this....
0
by: sagarp86 | last post by:
How to lock / deactivate "Refresh" and "Back" button on browser. Problem is in voting application. Once we click for a vote application goes to next page and increament one vote in the database....
4
by: Simon | last post by:
Dear reader, If I change the content of a field in an event procedure and in the same procedure I do a refresh, the refresh has no effect. The code in the event is as follows:
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.