Hi, in a nutshell I have a button on a form that is used to update a table based on data entered into a multi line textbox.
However, using this data I need to find information from a different table based on information stored in variables.
Below is a snippet of the code used;
Code:
EmpName = DLookup("[Name]", "dbo_BomEmployee", "Employee =" & BUILDID)
OvenName = DLookup("[Name]", "dbo_BomEmployee", "Employee =" & OVENID)
Status = DLookup("[Status]", "Employees_Performance", "LotNumber =" & LOTNUMBER)
The top 2 dlookups work, but the bottom one doesnt and returns an Invalid Use of Null error message. This shouldn't be the case because the data is in the Employee Performance table (The data in the variable 'LOTNUMBER' is in the Employee_Performance table under the LotNumber column.
Most forums that I have checked out have said use the NZ function in front of the DLOOKUP to allow null values to return but null values should not be returning in the first place.
Any help would be greatly appreciated...
Bill