Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2007

Tip: Looking for answers? Try searching our database.

Is there a good way to display dynamic text on a form?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SethMW - 24 Oct 2007 19:10 GMT
What's the best way for achieving this simple task?

A simple example would be the scenario where I want the text "Today is:
Tuesday" to appear on the form, where the day is "computed" in the code
behind and displayed on the form.

The only way I can think of to do this is with a read-only text box, but I
don't want to use a text box, just plain text.

Any suggestions?
S.Y.M. Wong-A-Ton - 25 Oct 2007 08:26 GMT
You can use an Expression box. Bind it to a field in the main data source
(you can drag-and-drop a text field to the form and then convert the Text Box
for the field to an Expression box; it will be automatically bound to the
field) and update the value of that field in code. The value will appear in
the Expression box and will look like a label.
---
S.Y.M. Wong-A-Ton

> What's the best way for achieving this simple task?
>
[quoted text clipped - 6 lines]
>
> Any suggestions?
SethMW - 25 Oct 2007 13:10 GMT
Many thanks...

I've never used the Expression control. I'm going to have to play around
with it a bit...

Seth

> You can use an Expression box. Bind it to a field in the main data source
> (you can drag-and-drop a text field to the form and then convert the Text Box
[quoted text clipped - 14 lines]
> >
> > Any suggestions?
S.Y.M. Wong-A-Ton - 26 Oct 2007 01:00 GMT
No worries. Good luck!
---
S.Y.M. Wong-A-Ton

> Many thanks...
>
[quoted text clipped - 21 lines]
> > >
> > > Any suggestions?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.