DLOOKUP get Data from Form in Access (1 Viewer)

ZKHADI

Member
Local time
Today, 17:57
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: 189

June7

AWF VIP
Local time
Today, 04:57
Joined
Mar 9, 2014
Messages
5,475
Domain aggregate functions pull data from table or query not form.

You reference textbox like: =[subform container name].Form.textboxname
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:57
Joined
May 7, 2009
Messages
19,248
maybe use same Expression for your mainform's textbox:

=dLookup("totals", "Expendaturefrm")
 

June7

AWF VIP
Local time
Today, 04:57
Joined
Mar 9, 2014
Messages
5,475
I am guessing subform calc is: =Sum([Amount])
 

June7

AWF VIP
Local time
Today, 04:57
Joined
Mar 9, 2014
Messages
5,475
Then what is it?

If you want to provide db for analysis, follow instructions at bottom of my post.
 

ZKHADI

Member
Local time
Today, 17:57
Joined
Apr 5, 2021
Messages
118
here id db. no confidential data.... just dummy data inside....
 

Attachments

  • try.zip
    3 MB · Views: 198

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 20:57
Joined
May 7, 2009
Messages
19,248
see the total on the lower portion of the main form.
 

Attachments

  • try.zip
    2.4 MB · Views: 193

Users who are viewing this thread

Top Bottom