473,320 Members | 2,048 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.

50 forms later, I forgot to set the form captions...

MLH
Now I see things like frmLookUpAvehicle (and other
form names) in the title bars on the forms. Can I change
all to the string returned by GetAppNameNver() in an
automated process from the immediate window or from
a utility form I make up just for the process?
Nov 13 '05 #1
5 1334

"MLH" <CR**@NorthState.net> wrote in message
news:ce********************************@4ax.com...
Now I see things like frmLookUpAvehicle (and other
form names) in the title bars on the forms. Can I change
all to the string returned by GetAppNameNver() in an
automated process from the immediate window or from
a utility form I make up just for the process?

Nov 13 '05 #2
On Mon, 11 Jul 2005 19:19:38 -0400, MLH <CR**@NorthState.net> wrote:
Now I see things like frmLookUpAvehicle (and other
form names) in the title bars on the forms. Can I change
all to the string returned by GetAppNameNver() in an
automated process from the immediate window or from
a utility form I make up just for the process?

Sub SetFormCaptions()
Dim i As Integer
Dim db As Database
Dim strNewCaption As String

Set db = CurrentDb
strNewCaption = GetAppNameNver()

For i = 0 To db.Containers(1).Documents.Count - 1
DoCmd.OpenForm db.Containers(1).Documents(i).Name, acDesign
Forms(db.Containers(1).Documents(i).Name).Caption = strNewCaption
DoCmd.Close acForm, db.Containers(1).Documents(i).Name, acSaveYes
Next

Set db = Nothing

End Sub

Nov 13 '05 #3
Cycle through the forms collection and set the caption property of each
form.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"MLH" <CR**@NorthState.net> wrote in message
news:ce********************************@4ax.com...
Now I see things like frmLookUpAvehicle (and other
form names) in the title bars on the forms. Can I change
all to the string returned by GetAppNameNver() in an
automated process from the immediate window or from
a utility form I make up just for the process?

Nov 13 '05 #4
On Tue, 12 Jul 2005 01:58:14 GMT, "PC Datasheet" <no****@nospam.spam>
wrote:
Cycle through the forms collection and set the caption property of each
form.


The forms collection only includes open forms, you need to cycle all
documents in the forms container.

Nov 13 '05 #5
MLH
Wayne, that was EXACTLY what I needed.
Thx much!
Nov 13 '05 #6

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

Similar topics

1
by: KK | last post by:
Windows Forms Inheritance, Incomplete? I was playing around with Windows Forms and found out this Forms Inheritance feature. The moment I saw that, I felt this can be used effectively if the...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
5
by: Armando | last post by:
I recently saw the tail end of a "Continuous forms" discussion, but not enough was available to see if this will be a PITA repeat question. Sorry if it is. On a form with its Default View...
14
by: RL Stevenson | last post by:
What is a reasonable way to manage a complex form with 5 or so tabs with 100 or more controls bound to 5-10 tables in a database? Pasting all those controls, datasets, data adapters directly onto...
9
by: Jon S via DotNetMonster.com | last post by:
Hi all, This should be simple. I have a form called frmInterface. On this form I have a label called lblStatus. I want to change the TEXT of this label from another class. For example...
5
by: ~~~ .NET Ed ~~~ | last post by:
Hi, As you all know when an ASP.NET web form is created that will include web controls and such, it contains a FORM that that identifies the web form and its containing controls. Well, I have a...
18
by: Jerry Boone | last post by:
I'm looking for a way to fire a public sub/function when a form is opened and closed - without using form level events. I have already done some extensive form work with instancing, looping...
5
by: kowndinya | last post by:
I want to count all opened forms and list captions of all the forms. There is a loop control. I forgot it. can someone help me please. thanks raj
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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: 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: 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.