DLOOKUP get Data from Form in Access

ZKHADI

Member
Local time
Tomorrow, 03:48
Joined
Apr 5, 2021
Messages
118
hy buddies....

i am trying to get data from a subform textbox which is not existing in table.
on main form i am trying to get the data. but its not working. where i am wrong see image
 

Attachments

  • Untitled.png
    Untitled.png
    59.2 KB · Views: 232
Domain aggregate functions pull data from table or query not form.

You reference textbox like: =[subform container name].Form.textboxname
 
maybe use same Expression for your mainform's textbox:

=dLookup("totals", "Expendaturefrm")
 
I am guessing subform calc is: =Sum([Amount])
 
Then what is it?

If you want to provide db for analysis, follow instructions at bottom of my post.
 
here id db. no confidential data.... just dummy data inside....
 

Attachments

see the total on the lower portion of the main form.
 

Attachments

Users who are viewing this thread

Back
Top Bottom