I need to pull the previous months record and I keep getting blank for the dlookup. The Date is set up to be th last day of each month.
Here is the dlookup I am trying to use
=DLookUp("[Net Insured]","[CashFlow Link]","[RCNAME]=" & "'" & [RCNAME] & "'" & " And [Date1]=" & "#" & DateAdd("m",-1,[Date1]) & "#")
here is what the data looks like
RCNAME Date1 Net nsured
Blue 3/31/2013 $5,600
Blue 4/30/2013 $8,000
Blue 5/31/2013 $7,500
Red 3/31/2013 $4,000
Red 4/30/2013 $2,500
Red 5/31/2013 $4,500
When the report is generated it will look like below
RCNAME Date1 Net Insured Prev
Blue 4/30/2013 $8,000 $5,600
Here is the dlookup I am trying to use
=DLookUp("[Net Insured]","[CashFlow Link]","[RCNAME]=" & "'" & [RCNAME] & "'" & " And [Date1]=" & "#" & DateAdd("m",-1,[Date1]) & "#")
here is what the data looks like
RCNAME Date1 Net nsured
Blue 3/31/2013 $5,600
Blue 4/30/2013 $8,000
Blue 5/31/2013 $7,500
Red 3/31/2013 $4,000
Red 4/30/2013 $2,500
Red 5/31/2013 $4,500
When the report is generated it will look like below
RCNAME Date1 Net Insured Prev
Blue 4/30/2013 $8,000 $5,600