N
nybaseball22
Hello,
I am trying to use a dlookup function on a form nd keep getting an
error. I am trying to lookup a number from one table based on a date
in my form. Specifics:
Date comes from table "ExpensesMain" and is on form "ExpensesDetail"
in a field called "Report Date". I am trying to pull a number (field
called "Report Number") from a table called "ExpenseRPTNumber". This
table also has a field called "Report Date" that has the same values
as Report Number in "ExpensesMain" table.
The code I am using is:
=DLookUp("[Report Number]","[ExpensesMain]","[Report Date]='" & Forms!
ExpensesDetail![Report Date] & "'")
I keep getting an #Error.
Thanks for the help.
I am trying to use a dlookup function on a form nd keep getting an
error. I am trying to lookup a number from one table based on a date
in my form. Specifics:
Date comes from table "ExpensesMain" and is on form "ExpensesDetail"
in a field called "Report Date". I am trying to pull a number (field
called "Report Number") from a table called "ExpenseRPTNumber". This
table also has a field called "Report Date" that has the same values
as Report Number in "ExpensesMain" table.
The code I am using is:
=DLookUp("[Report Number]","[ExpensesMain]","[Report Date]='" & Forms!
ExpensesDetail![Report Date] & "'")
I keep getting an #Error.
Thanks for the help.