Text Box

A

anonymous

I am trying to pull a data from query into text box:
In control Source of text box I have the following:=
[qryLastFile]![Value]
(Query runs fine), but When I open the form I get error.
Why?
 
F

fredg

anonymous said:
I am trying to pull a data from query into text box:
In control Source of text box I have the following:=
[qryLastFile]![Value]
(Query runs fine), but When I open the form I get error.
Why?

Is there only one record returned by the query?
If so,
=DLookUp("[ColumnName]","qryLastFile")

If there is more than one record returned by the query, you will need to
use criteria to determine which record is wanted.
 
A

anonymous

I am still get:#Error
=DLookUp("[FMax]","qryLastFile")
My query: select Max(filedate) as FMax from table.
Any idea why?
I am trying to display the max date.
 
F

fredg

anonymous said:
I am still get:#Error
=DLookUp("[FMax]","qryLastFile")
My query: select Max(filedate) as FMax from table.
Any idea why?
I am trying to display the max date.

Make sure the name of this control is NOT 'FMax'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top