473,387 Members | 1,476 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,387 software developers and data experts.

Form Caption = txtField ?

is there a way to have the content of a field to be displayed in the Form Caption ??
Nov 13 '07 #1
4 1882
JKing
1,206 Expert 1GB
Yes, you can programattically reference the form caption and set it equal to a text field.

You'll need to decide on what event you want this to fire off at but it's fairly simple and the line would look something like this:
Expand|Select|Wrap|Line Numbers
  1. Me.Caption = Me.txtMyField
  2.  
Where txtMyField is a field on your form.
Nov 14 '07 #2
missinglinq
3,532 Expert 2GB
I have a form with multiple tabbed pages in a home care database. The patient's name and ID data is listed on the first tabbed page, but so that users can keep track of whose record they're working on, when they're on one of the other tabbed pages, I use
Expand|Select|Wrap|Line Numbers
  1. Form_Current() 
  2.    Me.Caption = Me.PatientName
  3. End Sub
That way, the caption changes with each record, and by simply glancing up, the user can tell "Who's on first?"

Welcome to TheScripts!

Linq ;0)>
Nov 14 '07 #3
perfect,
great,
thks guys!
Nov 14 '07 #4
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Nov 14 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Colin Ward | last post by:
Hi. I have a popup modal form which gets part of its caption from code. The part of the caption which is determined from code is the name of the event. For example the caption would be "Add Year...
11
by: SELIM ZAIRI | last post by:
hi, to all i was wondering if some one got this problem before and if he had any solution i got a query: SELECT MSysObjects.Name, MSysObjects.Type, GETFRMCAPTION() AS Expr1 FROM MSysObjects...
8
by: NeoAsimov | last post by:
Hello, There is what I want to do. I worked on the problem since 6 hours but I had a problem (probably stupid) and I dont know how to resolve it. I need to have an Mouse Event Click when...
7
by: Marco | last post by:
The subject pretty much says it all. I need to create a form like the msgbox that returns a value, how would I go about doing this?
3
by: afr0ninja | last post by:
Hello! I'm currently working on a form that has several input fields and a subform. What I'm trying to accomplish is that when I first open the form I'd like to have the input fields displayed...
0
by: Franky | last post by:
I have a MDI form open and two child forms open in it. Each of the children contains a usercontrol which contains a richtextbox. The topmost form's caption bar is highlighted but I click on the...
0
by: kloplop321 | last post by:
I found this code(vb only) and it does about the same thing(in vb, not vb .NET 2005) Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute...
15
by: Briansmi1116 | last post by:
I created two buttons, that filter my form, They filter in different Fields, and if one is filtered, and the other is not there is a certain amount of record, if they are both pushed, then there is...
6
by: slg | last post by:
Is there a simpler way to increase the mdi form caption height? I am following this article but not sure where should i change? I belive its most probably in the WmNCCalcSize TIA ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.