I have 2 tables, Securities and Transactions. In a form which I use to record a transaction, I have the text boxes Date, Symbol, SecurityName, BuyPrice and SellPrice. When entering the "Symbol" I would like to have the Security Name show, which is drawn from the Securities table. I tried this expression in the text box:
=DLookUp("SecurityName","SecuritiesT","[Symbol]="&[Forms]![TransactionsF]![Symbol])
When entering a symbol that is in the Securities table #Name? shows up as the Security Name. If it is not in the Securities table then a message appears saying "You cannot add or change a record because a related record is required in table "Securities'"
What am I doing wrong? Any help would be appreciated. Thanks
=DLookUp("SecurityName","SecuritiesT","[Symbol]="&[Forms]![TransactionsF]![Symbol])
When entering a symbol that is in the Securities table #Name? shows up as the Security Name. If it is not in the Securities table then a message appears saying "You cannot add or change a record because a related record is required in table "Securities'"
What am I doing wrong? Any help would be appreciated. Thanks