Query Calculation Help

K

K

Good day, I have a subfrom based on a query called frmDataSub I would like to
have the subform display the number from the main form frmDataMain. Currently
I have the calculation in the subform query EFF:=form!frmDataMain!Efficiency
however it does not display the efficiency field from the main form in the
query. (Actually it is a bunch of boxes...???.. Is this because I cannot pull
the filed from the main form into the query? If not can I code it in VB? If
so how would I do this?

I appreciate your time. Kyle.
 
T

Tom van Stiphout

On Fri, 24 Oct 2008 05:29:00 -0700, K <[email protected]>
wrote:

Your syntax is wrong. It should be:
EFF:=forms!frmDataMain!Efficiency

Or the controlsource of the subform control could be set to
Me.Parent.Efficiency

-Tom.
Microsoft Access MVP
 

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

Similar Threads

DSum 1
Requery a parameter query 1
Query: Hide columns with VB/VBA 0
Form query help 0
Query/Subform Help 4
Subforms 1
Populate subform with query results 0
Parameter Query 1

Top