Displaying Query results in a form

J

Joseph Atie

Currently I have a form that allows you to enter a group
data and re(run) a query. This then brings up the results
in a table. Is there anyway to get the (single value from
a single field) data to display in the form??? I tried
using a requery on the form control, but this still shows
#name?

(n.b the requery was done with a macro, i.e change foucus
to form, requery form control, close query window, view
results in form window, this macro is then attached to
the button that opens/runs the query in question

Should this be possible??? or if not is there another way
to do this???
 
J

joseph atie

further

still on the above topic, just more info

what im trying to do is set the control source for a text
box to =[DrawIssDate]![Recieved Date]

where DrawIssDate is a query, is this possible???

If so any suggestions why i get #name? instead of the
required value???
 
J

John Vinson

further

still on the above topic, just more info

what im trying to do is set the control source for a text
box to =[DrawIssDate]![Recieved Date]

where DrawIssDate is a query, is this possible???
Nope.

If so any suggestions why i get #name? instead of the
required value???

Because that's not a recognizable syntax. You can't just refer to a
query name.

Suggestion: use

=DLookUp("[Received Date]", "[DrawIssDate]", <optional criteria>)
 

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