You probably copy and paste the SQL that I provided, and the SQL was cut to a
second row.
Try
SQLValid = "Select * from [Item Master] where [part #] = " & _
"'" & [Forms]![Actual Stocktake]![YPROD] & _
"' And [valid or invalid]= 'v'"

Signature
Good Luck
BS"D
> Thanks for your help Ofer, but I recieve the following error message
>
[quoted text clipped - 34 lines]
> > >
> > > If anyone has any suggestions, that would be great.
Jack - 08 Aug 2006 00:14 GMT
Really appreciate your help Ofer, but I now have another problem"
PROGRAM ERROR
An Error has occured. Error #3061
Too few parameters. Expected 1
Cheers
Jack
> You probably copy and paste the SQL that I provided, and the SQL was cut to a
> second row.
[quoted text clipped - 42 lines]
> > > >
> > > > If anyone has any suggestions, that would be great.
Jack - 08 Aug 2006 00:40 GMT
Ignore the previous message - You have solved my problem.
THANK YOU VERY MUCH OFER.
> Really appreciate your help Ofer, but I now have another problem"
>
[quoted text clipped - 51 lines]
> > > > >
> > > > > If anyone has any suggestions, that would be great.