Hi.. Just checked your file..
WOW !!
you have totally lost way..
What you have done is, you have tried to
* Run a Query for a specific information through search form,
** But if they(the person who performs search) do not enter any search items(parameters) it should return the whole stuff..
* So you have used 'Is Null', but in a wrong way.. Is Null is used to Check for Null value for a field.. but in this case you need is a Nz function and a LIKE operator, I have changed the code for you.. Now just copy and paste it into the SQL query window..
I am not sure how qalloy query even worked in the first place..
qAlloy_Qry Code:
SELECT OxSamples.SampleNo, OxSamples.TubeNo, OxSamples.Length, OxSamples.OD, OxSamples.ID, OxSamples.InitialWeight, OxSamples.FinalWeight, OxSamples.HydridingRunNo, OxSamples.Hydrogen1, OxSamples.Hydrogen2, OxSamples.RackPosition FROM OxSamples WHERE (((OxSamples.SampleNo) Like Nz([forms]![searchform].[qsampleno],"*")) AND ((OxSamples.TubeNo) Like Nz([forms]![searchform].[qtubeno],"*")) AND ((OxSamples.Length) Like Nz( [forms]![searchform].[qlength], "*")) AND ((OxSamples.OD) Like Nz([forms]![searchform].[qod],"*")) And ((OxSamples.ID) Like Nz([forms]![searchform].[qid],"*")) And ((OxSamples.InitialWeight) Like Nz([forms]![searchform].[qinitialweight],"*")) AND ((OxSamples.FinalWeight) Like Nz([forms]![searchform].[qfinalweight],"*")) AND ((OxSamples.HydridingRunNo) Like Nz([forms]![searchform].[qhydridingrunno],"*")) AND ((OxSamples.Hydrogen1) Like Nz([forms]![searchform].[qhydrogen1],"*")) AND ((OxSamples.Hydrogen2) Like Nz([forms]![searchform].[qhydrogen2], "*")) AND ((OxSamples.RackPosition) Like Nz([forms]![searchform].[qrackposition],"*")));
qOS_Qry Code:
SELECT OxSamples.SampleNo, OxSamples.TubeNo, OxSamples.Length, OxSamples.OD, OxSamples.ID, OxSamples.InitialWeight, OxSamples.FinalWeight, OxSamples.HydridingRunNo, OxSamples.Hydrogen1, OxSamples.Hydrogen2, OxSamples.RackPosition FROM OxSamples WHERE (((OxSamples.SampleNo) Like Nz([forms]![searchform].[qsampleno],"*")) AND ((OxSamples.TubeNo) Like Nz(