RE: Set label caption from query?
- From: "Ofer" <Ofer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Aug 2005 05:26:08 -0700
Try this
Me.lblComment.Caption = dlookup("Description","Version","Ref =" &
Dmax("Ref","Version"))
--
In God We Trust - Everything Else We Test
"Heather" wrote:
> I have a table (Version) with an autonumber index field (Ref) and a memo
> field (Description). I would like to display the latest entry in the memo
> field in a label on a form, but can't work out how. I can make a combo box
> show the information (2 columns, first hidden, Dmax to display the latest
> entry) but using the up arrows you can scroll back through the table entries,
> and I don't want that.
> I am trying to use "Me.lblComment.Caption = ........." in the form's load
> event but don't know how to continue. Do I need a query?
> Unless there is some way to make a combobox act like a label?
.
- Follow-Ups:
- RE: Set label caption from query?
- From: Heather
- RE: Set label caption from query?
- References:
- Set label caption from query?
- From: Heather
- Set label caption from query?
- Prev by Date: RE: .ldb file
- Next by Date: Use of buttons
- Previous by thread: Set label caption from query?
- Next by thread: RE: Set label caption from query?
- Index(es):