DLookup Seperate Lines

D

DS

How do I break this into seperate lines, I'm trying but I can't seem to
get it.
Thanks
DS

Nz(DLookup("[PriceID]", "[MenuDetails]", "TerminalID = " &
Me.TxtPStation & "And StartDay = " & Me.TxtPDay & " And MenuID = " &
Me.TxtPMenu & ""), 0)

Nz(DLookup("[PriceID]", "[MenuDetails]",
"TerminalID = " & Me.TxtPStation & "
And StartDay = " & Me.TxtPDay & "
And MenuID = " & Me.TxtPMenu & ""), 0)
 
D

Dirk Goldgar

DS said:
How do I break this into seperate lines, I'm trying but I can't seem
to get it.
Thanks
DS

Nz(DLookup("[PriceID]", "[MenuDetails]", "TerminalID = " &
Me.TxtPStation & "And StartDay = " & Me.TxtPDay & " And MenuID = " &
Me.TxtPMenu & ""), 0)

Nz(DLookup("[PriceID]", "[MenuDetails]",
"TerminalID = " & Me.TxtPStation & "
And StartDay = " & Me.TxtPDay & "
And MenuID = " & Me.TxtPMenu & ""), 0)

How about:

Nz(DLookup("[PriceID]", "[MenuDetails]", _
"TerminalID = " & Me.TxtPStation & _
" And StartDay = " & Me.TxtPDay & _
" And MenuID = " & Me.TxtPMenu), 0)

?
 
D

DS

Dirk said:
How do I break this into seperate lines, I'm trying but I can't seem
to get it.
Thanks
DS

Nz(DLookup("[PriceID]", "[MenuDetails]", "TerminalID = " &
Me.TxtPStation & "And StartDay = " & Me.TxtPDay & " And MenuID = " &
Me.TxtPMenu & ""), 0)

Nz(DLookup("[PriceID]", "[MenuDetails]",
"TerminalID = " & Me.TxtPStation & "
And StartDay = " & Me.TxtPDay & "
And MenuID = " & Me.TxtPMenu & ""), 0)


How about:

Nz(DLookup("[PriceID]", "[MenuDetails]", _
"TerminalID = " & Me.TxtPStation & _
" And StartDay = " & Me.TxtPDay & _
" And MenuID = " & Me.TxtPMenu), 0)

?
Dirk,
That did it.
Thank You
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

A Lot of Code 10
DCount Syntax 6
Table Quandry 11
Questionable DIM Type 5
DateDiff Problem 9
DLookUp 1
Combining 2 DCounts 2
Filtered Records 1

Top