473,396 Members | 2,106 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,396 software developers and data experts.

caption value problem in design view

Hello,

Often when I open one form, and (without closing it) open the form in its
design view, then all the caption value of the controls in this form
remained there in form's design view that is what I don't want. I wish the
caption value to be "". What can I do?

what is the form event from form view to design view?

Thanks in advance,

Paul
Nov 13 '05 #1
7 2404
PS: I used " Do Until rst.EOF ...loop" in the form's codes.

Is this the problem?

Paul

"Paul T. Rong" <et***@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
:DM******************@news.chello.at...
Hello,

Often when I open one form, and (without closing it) open the form in its
design view, then all the caption value of the controls in this form
remained there in form's design view that is what I don't want. I wish the
caption value to be "". What can I do?

what is the form event from form view to design view?

Thanks in advance,

Paul

Nov 13 '05 #2
If your question is "How do I set the Forms Caption" the answer is to
go to the Forms Properties, select All, go to Caption and enter your
Caption, if you do not want a caption simply enter a space.
Patrick

On Tue, 19 Oct 2004 07:56:19 GMT, "Paul T. Rong" <et***@hotmail.com>
wrote:
Hello,

Often when I open one form, and (without closing it) open the form in its
design view, then all the caption value of the controls in this form
remained there in form's design view that is what I don't want. I wish the
caption value to be "". What can I do?

what is the form event from form view to design view?

Thanks in advance,

Paul


Nov 13 '05 #3
I didn't make myself understood. Ok, simply, I wish the caption value of all
labels of the form (which is actually a sub form) to be "", i.e, nothing
when it goes from the form view to design view or when it is closed. Is it
possible? What should I do?

Thanks,

Paul

"Patrick Fisher" <in**@psoftuk.com>
??????:sr********************************@4ax.com. ..
If your question is "How do I set the Forms Caption" the answer is to
go to the Forms Properties, select All, go to Caption and enter your
Caption, if you do not want a caption simply enter a space.
Patrick

On Tue, 19 Oct 2004 07:56:19 GMT, "Paul T. Rong" <et***@hotmail.com>
wrote:
Hello,

Often when I open one form, and (without closing it) open the form in its
design view, then all the caption value of the controls in this form
remained there in form's design view that is what I don't want. I wish thecaption value to be "". What can I do?

what is the form event from form view to design view?

Thanks in advance,

Paul

Nov 13 '05 #4
It might make easier if you can explain why you need to do this, your
user will not see it in design mode.
Patrickl

On Tue, 19 Oct 2004 11:07:30 GMT, "Paul T. Rong" <et***@hotmail.com>
wrote:
I didn't make myself understood. Ok, simply, I wish the caption value of all
labels of the form (which is actually a sub form) to be "", i.e, nothing
when it goes from the form view to design view or when it is closed. Is it
possible? What should I do?

Thanks,

Paul

"Patrick Fisher" <in**@psoftuk.com>
??????:sr********************************@4ax.com ...
If your question is "How do I set the Forms Caption" the answer is to
go to the Forms Properties, select All, go to Caption and enter your
Caption, if you do not want a caption simply enter a space.
Patrick

On Tue, 19 Oct 2004 07:56:19 GMT, "Paul T. Rong" <et***@hotmail.com>
wrote:
>Hello,
>
>Often when I open one form, and (without closing it) open the form in its
>design view, then all the caption value of the controls in this form
>remained there in form's design view that is what I don't want. I wishthe >caption value to be "". What can I do?
>
>what is the form event from form view to design view?
>
>Thanks in advance,
>
>Paul
>


Nov 13 '05 #5
On Tue, 19 Oct 2004 11:07:30 GMT, Paul T. Rong wrote:
I didn't make myself understood. Ok, simply, I wish the caption value of all
labels of the form (which is actually a sub form) to be "", i.e, nothing
when it goes from the form view to design view or when it is closed. Is it
possible? What should I do?

Thanks,

Paul

"Patrick Fisher" <in**@psoftuk.com>
??????:sr********************************@4ax.com. ..
If your question is "How do I set the Forms Caption" the answer is to
go to the Forms Properties, select All, go to Caption and enter your
Caption, if you do not want a caption simply enter a space.
Patrick

On Tue, 19 Oct 2004 07:56:19 GMT, "Paul T. Rong" <et***@hotmail.com>
wrote:
Hello,

Often when I open one form, and (without closing it) open the form in its
design view, then all the caption value of the controls in this form
remained there in form's design view that is what I don't want. I wish thecaption value to be "". What can I do?

what is the form event from form view to design view?

Thanks in advance,

Paul


To change a label's caption to "" upon exiting a form, and having it
remain "" when opening the form the next time, it MUST be changed
while in design view.

You can do this using code:

DoCmd.OpenForm "YourForm", acDesign
Dim c As Control
For Each c In Forms!YourForm.Controls
If TypeOf c Is Label Then
c.Caption = ""
End If
Next c
DoCmd.Close acForm, "YourForm", acSaveYes

All the captions will be blank when the form is next opened.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #6
Fred,

Thank you! But two questions:

1. "...it MUST be changed while in design view.", I didn't get you, what is
"it"? because I don't understand the it clause that I have problem to
understand the whole sentence.

2. the codes seem perfect and simple, but where, in which event, shall I put
the codes?

Paul

To change a label's caption to "" upon exiting a form, and having it
remain "" when opening the form the next time, it MUST be changed
while in design view.

You can do this using code:

DoCmd.OpenForm "YourForm", acDesign
Dim c As Control
For Each c In Forms!YourForm.Controls
If TypeOf c Is Label Then
c.Caption = ""
End If
Next c
DoCmd.Close acForm, "YourForm", acSaveYes

All the captions will be blank when the form is next opened.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

Nov 13 '05 #7
On Wed, 20 Oct 2004 07:13:21 GMT, Paul T. Rong wrote:
Fred,

Thank you! But two questions:

1. "...it MUST be changed while in design view.", I didn't get you, what is
"it"? because I don't understand the it clause that I have problem to
understand the whole sentence.
From a previous post of yours: Ok, simply, I wish the caption value of all
labels of the form (which is actually a sub form) to be "", i.e, nothing
when it goes from the form view to design view or when it is closed. <
The "it" refers to changing the label captions to blank, which is what
you previously stated you wish to do.

2. the codes seem perfect and simple, but where, in which event, shall I put
the codes?
Place it in the click event of a command button.
Paul
To change a label's caption to "" upon exiting a form, and having it
remain "" when opening the form the next time, it MUST be changed
while in design view.

You can do this using code:

DoCmd.OpenForm "YourForm", acDesign
Dim c As Control
For Each c In Forms!YourForm.Controls
If TypeOf c Is Label Then
c.Caption = ""
End If
Next c
DoCmd.Close acForm, "YourForm", acSaveYes

All the captions will be blank when the form is next opened.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #8

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

Similar topics

2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
1
by: alan.rolfe | last post by:
Using Access 2002 (in Access 2000 mode). Can anyone tell me how I can alter the text size for the design view of tables etc.? I can adjust the datasheet view by using 'options' but the design view...
1
by: VB Programmer | last post by:
When I go from HTML view (in a webform) to Design View I get the following error: Could not open in Design view. Quote values differently inside a '<% ... "value" ... %>' block. I know exactly...
1
by: Donnie | last post by:
Hello I'm receiving the following error message when I try to view an aspx page in Design view "Could not open in Design View. Quote values differently inside a '<%... "value" ... %>' block ...
2
by: Saber | last post by:
I've a repeater and here is a piece of HTML when I use, I can't switch back to Design view: <a href=default.aspx?id=<%#container.dataitem("id")%>Some Link</a> I get this error message: Could...
12
by: Raed Sawalha | last post by:
I have the following table which i can not switcha to design view error message said Could not open in Design view. Quote values differently inside a '<% ...."value"... %>' block. and the...
4
by: Ken McCrory | last post by:
I have a page with some inline server-side code. An example line is: <input type="hidden" name="fmFirstName" value="<%=Session("FirstName")%> "> The code and logic works and does what it is...
1
by: Nogusta123 | last post by:
Hi, I have had a lot of problems getting web pages, master pages and content pages to render in VS2005 design view the same as they would in Internet Explorer. I did a lot of looking on the...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.