DLookup to bring report totals into form controls

C

CW

I have a report that counts and sums the number and value of our bookings
each month. Those values are in Textbox19 and Textbox21 in the footer of
rptMonthlyBookings.

I'm trying to get those values into controls on a form, using DLookup, and
keep getting Error as the result.

Could someone kindly confirm the correct structure of the DLookup expression
for this?

Many thanks
CW
 
M

Maurice

Place the dlookup in a textbox not in the footer but in a additional section
of the form. Insert a page footer and try it in there. Also show us the
dlookup you are using maybe there's something wrong with it and we can take a
look at it.
 
C

CW

No the dlookup textboxes aren't in a footer, that's not what I said.
It's the source textboxes i.e. the Sum and Count textboxes that are in a
footer, (the footer of the report).
I want to pull the values from there into textboxes that are sitting in the
Detail section of a form.
 
M

Maurice

My apologies misread and misunderstood the question.

What is the DLookup statement what you are using now what is causing the
error?

Syntax should be:

=Dlookup("lookupfield","lookuptable","lookup variable")
 

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