G
Guest
On my form I have a control txtletter2 that I want to populate from a value
of a field in a seperate table tblcompliantnbr. The table has 2 fields
txtyear and txtletter with A for 2005, B for 2006 etc. I have another control
on my form that is a date called txtdaterecd. I want txtletter2 to be
populated with the value of txtletter appropriate for the year value of
txtdaterecd. I've tried using this Dlookup
=DLookUp("[txtletter]","[tblcomplaintnbr]","[txtyear]=Forms![frmcomplaint].Year([txtdatered])")
But I get #Error
Where am I going wrong?
Thanks
Tony
of a field in a seperate table tblcompliantnbr. The table has 2 fields
txtyear and txtletter with A for 2005, B for 2006 etc. I have another control
on my form that is a date called txtdaterecd. I want txtletter2 to be
populated with the value of txtletter appropriate for the year value of
txtdaterecd. I've tried using this Dlookup
=DLookUp("[txtletter]","[tblcomplaintnbr]","[txtyear]=Forms![frmcomplaint].Year([txtdatered])")
But I get #Error
Where am I going wrong?
Thanks
Tony