Patrick Goodyear
unread,Sep 7, 2014, 8:01:06 PM9/7/14Sign in to reply to author
Sign in to forward
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I wouldn't have called myself a newbie, but my current problem makes me
feel like one. I have a subform that has two text boxes that look up a
text value in the records based on a numeric value on the form. These
work perfectly...
=DLookUp("[NEName]","[tblBasicConfig]","[tblBasicConfig]![MW_Site_ID]=[sfrm_tblPaths]![MW_Site_ID]")
=DLookUp("[NEName]","[tblBasicConfig]","[tblBasicConfig]![MW_Site_ID]=
[sfrm_tblPaths]![RX_MW_Site_ID]")
Then I have a text box that try's to look up a numeric value, based on
two numeric values (also tried with text values) on the form. Doesn't
work at all. I know it's in the criteria; I've run it without the
criteria, and it returns the first value in the table. I have tried
every combination of brackets and quotes, but I either get a #Name
error, a #Error error (that blinks like the screen update is looping, or
no value at all. I've tried updating the box by selecting it an
pressing F9.
Here are three different versions I have tried. If you can see what my
error is I would greatly appreciate you pointing it out.
=DLookUp("NewTx_Frequency","tbl_Full_Paths","UniquePath=Forms!sfrm_tblPaths!Text99")
=DLookUp("[NewTx_Frequency]","[tbl_Full_Paths]","[Forms]![UniquePath]='"
& [sfrm_tblPaths].[Text99] & "'")
=DLookUp("[NewTx_Frequency]","[tbl_Full_Paths]","[UniquePath]='" &
[sfrm_tblPaths].[Text99] & "'")
Kind Regards,
Patrick