My Assistant
![]() ![]() |
|
|
Feb 25 2005, 08:55 AM
Post
#1
|
|
|
UtterAccess Ruler Posts: 1,903 From: Massachusetts |
I want to have an Unbound textbox display the maximum date in the VISIT table when the form opens. Something like this:
DMAX("[visit_dt]", "VISIT"). The form already has a data source from a different table. Not sure if that matters? |
|
|
|
Feb 25 2005, 10:31 AM
Post
#2
|
|
|
UtterAccess Ruler Posts: 2,337 From: Northern Virginia, USA |
Although you could try to make it a calculated value, since the value is essentially going to be constant, I'd just compute it when the form opens/loads and put the value in there. So, if this textbox is named txtMaxDate, you could have
txtMaxDate.Value = DMax("visit_dt", "VISIT") in the form's open or load event. If any actions on the form could possibly change the max value, then you might need to recompute it. But, if you do want to make it a calculated value, you can set its control source to =DMax("visit_dt", "VISIT") Hope that helps. (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif) |
|
|
|
Feb 25 2005, 10:49 AM
Post
#3
|
|
|
UtterAccess Ruler Posts: 1,903 From: Massachusetts |
Thanx.
|
|
|
|
Feb 25 2005, 11:39 AM
Post
#4
|
|
|
UtterAccess Ruler Posts: 2,337 From: Northern Virginia, USA |
Sure, no problem! (IMG:http://www.utteraccess.com/forum/style_emoticons/default/frown.gif)
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 19th June 2013 - 05:31 AM |