Textbox displaying the Min()

Lifeseeker

Registered User.
Local time
Yesterday, 20:52
Joined
Mar 18, 2011
Messages
273
Hi guys,

I have a blank form, and it has two textboxes which are meant to show

1) from date
2) thru date

in the control source of my first textbox, I put in....
Code:
=Min([TEST].[Dates])

but I'm getting ERROR in that textbox. Basically I want to just find the smallest date in the column "Dates".

The query "TEST" basically returns a list of dates, and the min() will obviously return the smallest of it, but it is currently not.

Can someone help me?

Thanks
 
Is the form bound to the query? If not, use DMin() to get the earliest date.
 
Is the form bound to the query? If not, use DMin() to get the earliest date.

I have actually changed the textbox into combobox, allowing users to select a particular date.

How would you write the code if you are using DMIN()?

The textbox is not bound to the form. (it says unbounded textbox).

How do I get it to bound to the form?

Thanks
 
=DMin("Dates", "Test")
 

Users who are viewing this thread

Back
Top Bottom