I am building a form and having trouble with getting the DLookup to function correctly.
Here is what I have. I have a query which contains employee information relating to Profits and Loss. so things like name, salary, etc.
Now I am creating a form where I can see a listbox of my employees on the left and when I click on one of the entries in the listbox it populates a series of text boxes with the various values of the fields from that specific record.
I am using access 2007 I built a listbox off a query which contains all the fields that I want to get the data populated from. however I am having trouble configuing the Control source of the text boxes so that they will populate with that employee's data.
Could someone please help? Should I use a VBA onclick event instead or is there a way I can get the effect that I am looking for simply by modifying the Control source for the specific textboxes that I want to populate?