PHV,
I changed the sql using your suggestion and it works even if a field is null. However, I now get all the entries in the table. Any suggestions?
Dim sql As String
sql = "SELECT [Log].Date, [Log].Department, [Log].Name, Log.[Outside Service], [Log].[Service Engineer], [Log].Company, [Log].Instrument, [Log].[Channel A], [Log].[Channel B], [Log].Trap, [Log].Septa, [Log].Liner, [Log].[Column Clip], [Log].Filament, [Log].[Ion Trap Cleaning], [Log].[Transfer Line], [Log].[Y Connector], [Log].[Guard Column], [Log].[Guard Column Serial Number], [Log].[Guard Column Length m], [Log].[Analytical Column], [Log].[Column Serial Number], [Log].[Length m], [Log].[Inside Diameter mm], [Log].[Film Thickness um], [Log].[Syringe and/or Needle], [Log].[Replace ECD], [Log].[ECD Serial Number], [Log].Prosep, [Log].[Prosep ID], [Log].[Prosep Cool Valve], [Log].[Prosep Split Valve], Log.FID, [Log].[Replace TurboVap Sensors], [Log].[TV Sensor 1], [Log].[TV Sensor 2], [Log].[TV Sensor 3], [Log].[TV Sensor 4], [Log].[TV Sensor 5], [Log].[TV Sensor 6], [Log].[TV Sensor 7], [Log].Other"
sql = "sql & FROM [Log]"
sql = "sql & where (Log.Date = [Forms]![test]![StartDate] Or [Forms]![test]![StartDate] Is Null) And (Log.Name = [Forms]![test]![Employee] Or [Forms]![test]![employee] Is Null) And (Log.Company = [Forms]![test]![Company] Or [Forms]![test]![Company] Is Null)"