473,385 Members | 1,707 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,385 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 2283
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. ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.