bnageshrao
Programmer
I have not used Dlookup function and I went thru the expression bulider to use it while updating a table using query. I have the following situation as an example.
I have a table called Leads and it has two of the columns are called Lead Name and AM Name
Lead Name AM Manager
1. InValid Invalid
2. Invalid (Blank)
3. Rick Hu Thomas King
4. (Blank) John Reid
I have to update the Lead Name Column and the criteria is if the Lead Name has a value of Invalid or if it is Blank, then I have to replace those values with the first AM Manager name value. If the first AM manager name is either invaild or Blank, then I have to choose the next AM manager's value. So what I want to achieve in those columns after the update is as follows.
Lead Name AM Manager
1. Thomas King Invalid
2. Thomas King (Blank)
3. Rick Hu Thomas King
4. Thomas King John Reid
Is it possible to update using Dlookup function or how i can do this, if a sample code is shown then it will be useful, tanks in advance.
I have a table called Leads and it has two of the columns are called Lead Name and AM Name
Lead Name AM Manager
1. InValid Invalid
2. Invalid (Blank)
3. Rick Hu Thomas King
4. (Blank) John Reid
I have to update the Lead Name Column and the criteria is if the Lead Name has a value of Invalid or if it is Blank, then I have to replace those values with the first AM Manager name value. If the first AM manager name is either invaild or Blank, then I have to choose the next AM manager's value. So what I want to achieve in those columns after the update is as follows.
Lead Name AM Manager
1. Thomas King Invalid
2. Thomas King (Blank)
3. Rick Hu Thomas King
4. Thomas King John Reid
Is it possible to update using Dlookup function or how i can do this, if a sample code is shown then it will be useful, tanks in advance.