473,407 Members | 2,326 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.

How to refresh data on a MainForm

Dear reader,

I have a Form with a SubForm.

On the MainForm there is a field receiving his content from a group query.

If a change or append or delete a record in the SubForm the group query will
cam up with another value.

How can I refresh the value as result from the group query in the MainForm
without closing and reopen the Form.

Docomand Requiry ?

Forms!FormName.Refresh ?

These commands do not help me.

Thanks for any help.

Kind regards,

Simon van Beek
Nov 13 '05 #1
2 2284
S. van Beek wrote:
Dear reader,

I have a Form with a SubForm.

On the MainForm there is a field receiving his content from a group query.

If a change or append or delete a record in the SubForm the group query will
cam up with another value.

How can I refresh the value as result from the group query in the MainForm
without closing and reopen the Form.

Docomand Requiry ?

Forms!FormName.Refresh ?

These commands do not help me.

Thanks for any help.

Kind regards,

Simon van Beek

YOu might want to try the format
Forms!MainForm!FieldName.Requery
if the field is a calculated field. Otherwise you can try
Forms!MainForm.Form.Requery
in the AfterUpdate event of the subform.
Nov 13 '05 #2
S. van Beek wrote:
Dear reader,

I have a Form with a SubForm.

On the MainForm there is a field receiving his content from a group query.

If a change or append or delete a record in the SubForm the group query will
cam up with another value.

How can I refresh the value as result from the group query in the MainForm
without closing and reopen the Form.

Docomand Requiry ?

Forms!FormName.Refresh ?

These commands do not help me.

Thanks for any help.

Kind regards,

Simon van Beek

YOu might want to try the format
Forms!MainForm!FieldName.Requery
if the field is a calculated field. Otherwise you can try
Forms!MainForm.Form.Requery
in the AfterUpdate event of the subform.
Nov 13 '05 #3

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

Similar topics

0
by: Dalan | last post by:
I'm sure there is a workaround for this, but haven't found it yet. I have a mainform with two subforms and after one or both of the subforms are updated, then clicking the Refresh button on the...
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...
0
by: S. van Beek | last post by:
Dear reader, I have a Form with a SubForm. On the MainForm there is a field receiving his content from a group query. If a change or append or delete a record in the SubForm the group...
4
by: Yogi_Bear_79 | last post by:
Self Taught here so please bear with me. I have the labelRestrictSites as private on the MainForm.cs. I then access the labelRestrictSites.Text thru the public string LabelRestrictSites from...
3
by: juky | last post by:
Hi all, I have 2 applications one in VB.net and the other in VC6. I need to pass data between them. How can I do it? what's the best way to implement such communication ? Any comment will be...
3
by: plgii | last post by:
I have modal pop-up form1 showing list of items. There is a button that opens a new modal pop-up form2 which is a tabbed form (not subform) to add items to form1, form1 is still open behind form2....
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...
9
by: kirk | last post by:
I have program.cs, my "main" form and then a "settings" form. My "main" form existed for awhile and I had constants, instantiations, properties, etc within it created. I went to create my...
5
by: BlackBox | last post by:
I have a Listbox1 in the main form and I can add listbox1 items in the parent form. But when I close the parent form Listbox1 in the main form does not get refresh. I need to re-open the app. ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.