G
Guest
I am trying to use the DLookup function in Access 2003 to get a form to
return a set of possible test results based on the name of the test entered
in the form. The expression
=DLookup("[Result 1]" , "[Test Results]", "[Test]" = "[Test]"
or
=DLookup("[Result 1]" , "[Test Results]", "[Test] = [Test]"
returns the same result no matter what test name is entered.
Typing it as
=DLookup("[Result 1]" , "[Test Results]", "[Test Tracking]![Test]" = "[Test]"
or
=DLookup("[Result 1]" , "[Test Results]", "[Test] = [Test Tracking]![Test]"
gets me #Error
Trying to use any other syntax results in error messages stating that the
syntax is incorrect, or that I have entered an operator without an operand. I
have tried using DLookup both directly in the form and in a Query on which I
would then base the form and am having the same problem.
I know I must be doing something wrong in the criteria, but nothing seems to
work. Please Help!!
return a set of possible test results based on the name of the test entered
in the form. The expression
=DLookup("[Result 1]" , "[Test Results]", "[Test]" = "[Test]"
or
=DLookup("[Result 1]" , "[Test Results]", "[Test] = [Test]"
returns the same result no matter what test name is entered.
Typing it as
=DLookup("[Result 1]" , "[Test Results]", "[Test Tracking]![Test]" = "[Test]"
or
=DLookup("[Result 1]" , "[Test Results]", "[Test] = [Test Tracking]![Test]"
gets me #Error
Trying to use any other syntax results in error messages stating that the
syntax is incorrect, or that I have entered an operator without an operand. I
have tried using DLookup both directly in the form and in a Query on which I
would then base the form and am having the same problem.
I know I must be doing something wrong in the criteria, but nothing seems to
work. Please Help!!