dlookup from another form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to dlookup the 20yrrt column in the form 20yrfed based on the
date in the current form (15thprior) and the date in the 20yrfed form (15th
prior) as well. What is wrong with my statement?

=DLookUp("[20yrrt]"," Forms![20yrFed] ","[15thPrior] = " &
Forms![20yrFed]![15thPrior])
 
CO said:
I am trying to dlookup the 20yrrt column in the form 20yrfed based on the
date in the current form (15thprior) and the date in the 20yrfed form (15th
prior) as well. What is wrong with my statement?

=DLookUp("[20yrrt]"," Forms![20yrFed] ","[15thPrior] = " &
Forms![20yrFed]![15thPrior])

You can't use Dlookup() against a form. The second argument needs to be a table
or query.
 

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

Back
Top