DLookUp Problem

D

DS

This DLookUp doesn't seem to be working. Does anyone know why?
Thanks
DS

=Nz(DSum([Expr1],"SalesDetailsQ",[SalesID]=Forms!SalesDetails!SalesID &
[SDTaxed]=True))
 
D

DS

DS said:
This DLookUp doesn't seem to be working. Does anyone know why?
Thanks
DS

=Nz(DSum([Expr1],"SalesDetailsQ",[SalesID]=Forms!SalesDetails!SalesID &
[SDTaxed]=True))
Sorry, My minds in two places again...It DSum.
Thanks
DS
 
D

Duane Hookom

=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" & Forms!SalesDetails!SalesID
& " AND [SDTaxed]=True"), [value if the expression is null])

This assume SalesID is numeric.


--
Duane Hookom
MS Access MVP


DS said:
DS said:
This DLookUp doesn't seem to be working. Does anyone know why?
Thanks
DS

=Nz(DSum([Expr1],"SalesDetailsQ",[SalesID]=Forms!SalesDetails!SalesID &
[SDTaxed]=True))
Sorry, My minds in two places again...It DSum.
Thanks
DS
 
D

DS

Duane said:
=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" & Forms!SalesDetails!SalesID
& " AND [SDTaxed]=True"), [value if the expression is null])

This assume SalesID is numeric.
Thanks Duane, The SalesID is Numeric..... I cut and pasted the entire
phrase from =Nz(...................to is null])
but I'm getting a %Name# in the box. Any idea why?
Thanks
DS
 
D

DS

DS said:
Duane said:
=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" &
Forms!SalesDetails!SalesID & " AND [SDTaxed]=True"), [value if the
expression is null])

This assume SalesID is numeric.
Thanks Duane, The SalesID is Numeric..... I cut and pasted the entire
phrase from =Nz(...................to is null])
but I'm getting a %Name# in the box. Any idea why?
Thanks
DS
Duane,,,,Inspiration came quickly. This worked.

=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" & Forms!Sales!SalesID &
" AND [SDTaxed]=True"))

Thanks Duane, your help is greatly appreciated.
DS
 
D

Duane Hookom

I don't create Nz() expressions without providing the value if the first
argument is null.

--
Duane Hookom
MS Access MVP


DS said:
DS said:
Duane said:
=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" &
Forms!SalesDetails!SalesID & " AND [SDTaxed]=True"), [value if the
expression is null])

This assume SalesID is numeric.
Thanks Duane, The SalesID is Numeric..... I cut and pasted the entire
phrase from =Nz(...................to is null])
but I'm getting a %Name# in the box. Any idea why?
Thanks
DS
Duane,,,,Inspiration came quickly. This worked.

=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" & Forms!Sales!SalesID & "
AND [SDTaxed]=True"))

Thanks Duane, your help is greatly appreciated.
DS
 
D

DS

Duane said:
I don't create Nz() expressions without providing the value if the first
argument is null.
Sorry Duane...I see what what you meant now....its been a long day!
Thanks
DS
 
D

DS

Duane said:
I don't create Nz() expressions without providing the value if the first
argument is null.
=Nz(DSum("[Expr1]","SalesDetailsQ","[SalesID]=" & Forms!Sales!SalesID & "
AND [SDTaxed]=True"),0)

This worked even better!!!!:)
Thanks
DS
 

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

Report Group Footer DLookUp 0
DSUM Not Working 5
DLookUp Trouble 3
SQL Problem 1
DLookup in Continuous form 0
Wrap a Line 5
DCount 2 Criteria 2
DSum Problem 2

Top