Access Dlookup error with Access 2007

Joined
Jan 28, 2010
Messages
1
Reaction score
0
Hello,

I have a form called "Project Commencement Advice" which will be filled out by staff.
I have a drop down list (Called "Project List" where staff can select which project they'd like to commence. The list in the form is a combo box and is filled in by data from a query called "Projects Query" and the column list is "ProjectList" (sorry for going on and on, but I think the more information given the better!)
I'm trying to have a Text Box populate itself with the budgeted days for the project (e.g. project "a" has 37 days) "Projects Query" has the column "BudgetDays" next to the relevant ProjectList.

I've created a Dlookup in the Control Source that looks like this:
=DLookUp([BudgetDays],"Projects Query","[Projects Query]![ProjectList]=" & "[Project List]")

The result in the text box is "0" (not correct)

Is there anyone who knows what I can do to fix this?

Also how can I get it to update automatically after selecting a Project from "Project List"? In the past I've had to close the form then reopen it to get the correct data.

Thanks!
Jen
 
Joined
Feb 25, 2010
Messages
16
Reaction score
0
Try removing the quotes around [Project]:

=DLookUp([BudgetDays],"Projects Query","[Projects Query]![ProjectList]=" & [Project List])
 

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

Top