UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> #Name? in textbox    
 
   
NineIron
post 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?
Go to the top of the page
 
+
Fletch
post 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)
Go to the top of the page
 
+
NineIron
post Feb 25 2005, 10:49 AM
Post #3

UtterAccess Ruler
Posts: 1,903
From: Massachusetts



Thanx.
Go to the top of the page
 
+
Fletch
post 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 the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 05:31 AM