Question : Query as Control Source

On a form, can I use the fllowing statement as the control source for a text box on that form.
   = [Q-120-02 DLCalcPrevTrnSet]![PrevTrnSet]
The query properly selects the criteria for the record I am on.

If the answer is "no" Do I need to use DlookUp as the control source.


Lou

Answer : Query as Control Source

The answer is indeed no - you can use a DLookUp as follows:

=DLookUp("[PrevTrnSet]","Q-120-02 DLCalcPrevTrnSet")

Assuming that the query Q-120-02 DLCalcPrevTrnSet only returns a single record. There are other ways of doing it, but this is probably the easiest.
Random Solutions  
 
programming4us programming4us