473,320 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,320 software developers and data experts.

Referring to controls on closed forms

You can refer to a control on a closed form, such as by grabbing the
value of the tab control from a closed form, but i am not sure what
this does to the form. Does it activate it but not open it?
More to the point, that means that for some forms, values are not
'reset' to nothing when the form is closed. how would this be done?
I'm coming across a situation where i am programmatically closing a
form, and then it is reopened but the old values still exist for the
form. It is a bound form, and the underlying query is changing, but
the values are not being changed.
Nov 13 '05 #1
1 4325
isaphrael, You cannot refer to a control and get its value when the form is
closed. You can open it via code in design view, but there aren't values
associated with your bound controls until you actually open the form.
If/when you close a form and reopen it, it will requery the underlying data.
It doesn't sound to me like you are actually closing the first form and
reopening it. You need to either requery/refresh the data on your form to
see the results caused by processes that may have changed the data of the
original recordsource. If you could provide more info as to exactly what
you are doing and what you expect to happen maybe I/we can guide you in the
right direction.

--
Reggie

----------
"isaphrael" <id******@yahoo.com> wrote in message
news:54**************************@posting.google.c om...
You can refer to a control on a closed form, such as by grabbing the
value of the tab control from a closed form, but i am not sure what
this does to the form. Does it activate it but not open it?
More to the point, that means that for some forms, values are not
'reset' to nothing when the form is closed. how would this be done?
I'm coming across a situation where i am programmatically closing a
form, and then it is reopened but the old values still exist for the
form. It is a bound form, and the underlying query is changing, but
the values are not being changed.

Nov 13 '05 #2

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

Similar topics

5
by: HB | last post by:
Can I refer to a controls property using a string much like I can a Control. I want to simplify the following code: forms!frmname!ctrlnm.visible = true forms!frmname!ctrlnm.enabled= true...
7
by: MLH | last post by:
Sub ListControlsBttn_Click () '************************************************************************* ' Purpose: Run the Controls Collection for user-specified form. ' The controls collection...
4
by: MLH | last post by:
Somehow, I seem to be able to refer to combo-box controls in 2 distinctly different ways. A combo-box on an Access 97 form named TagCountyChooserBox seems can be referenced these ways... ...
1
by: Jeremy | last post by:
* Apologies .. this is a duplicate of a msg posted in the Controls forum, where I posted it first by mistake -- Jeremy My mdi child has a shared execute method which creates and shows it. I'm...
3
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
4
by: raj_genius | last post by:
I hav two queries, whc are as follows: FIRSTLY: is it possible to access the controls(by name) of a parent form(MDI) from its child forms??if yes then how??plzz provide a coded example in VB if...
2
by: Sugan | last post by:
Hi all, I'm converting a VB 6 exe project to a VB 2005 project. One main functionality in VB 6 that gives errors in VB 2005 project is as follows: In VB6, i have a initial form called...
1
by: mirandacascade | last post by:
1) Module1 has the following delcaration: Public g_frmZZZ as Form Public g_txtForm2 as Variant 2) app has two forms: form1 and form2 3) a command button on form1 opens form2; it also has...
2
by: csolomon | last post by:
Hello: I would like to use information on one form to populate another form. There are 2 controls I would like to transfer; a list box control and a text box control. both are unbound controls...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.