Copying text from query to form

J

Jedit

Help please.
Don’t seem to be able to see the woods for the trees here????

Anyway.

I want to input a value from a query in to a textbox on my form.
The form is bound to a query called qry_datainput that does some calcs etc &
displays the data. The text box (form-time) takes input manually but I want
to get a value (sum-form-time) from another query called QRY_sum-fORM time.

How can I automate this function so that I don’t have to copy the value from
one form & paste it into the other????

code for query is bellow

SELECT DISTINCTROW QRY_Part_No_OPs.mc, Sum(QRY_Part_No_OPs.[Unit Time]) AS
[Sum Of Unit Time]
FROM QRY_Part_No_OPs
GROUP BY QRY_Part_No_OPs.mc
HAVING (((QRY_Part_No_OPs.mc)="FORM"));
 
D

Dan Artuso

Hi,
Why not use the DLookup function, I think it will work for you.
Help has examples.
 

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