G
Guest
Hi
Can someone help me with the following problem:
SQLValid = "Select * from [Item Master] where [part #] = '" _
& [Forms]![Actual Stocktake]![YPROD]& "'"
Now what I am trying to do is select something from the item master where
[valid or invalid] = V. How can I add this to the existing query I have
stated above?
What I did try was add another WHERE part to this statement
SQLValid = "Select * from [Item Master] where [part #] ='" and [valid or
invalid]=v
& [Forms]![Actual Stocktake]![YPROD] & "'"
However when I do this, I recieve the following error - compile error -
syntax error. When I have made minor adjustments to this query I always get a
compile error relating to the [valid or invalid] not being defined.
If anyone has any suggestions, that would be great.
Can someone help me with the following problem:
SQLValid = "Select * from [Item Master] where [part #] = '" _
& [Forms]![Actual Stocktake]![YPROD]& "'"
Now what I am trying to do is select something from the item master where
[valid or invalid] = V. How can I add this to the existing query I have
stated above?
What I did try was add another WHERE part to this statement
SQLValid = "Select * from [Item Master] where [part #] ='" and [valid or
invalid]=v
& [Forms]![Actual Stocktake]![YPROD] & "'"
However when I do this, I recieve the following error - compile error -
syntax error. When I have made minor adjustments to this query I always get a
compile error relating to the [valid or invalid] not being defined.
If anyone has any suggestions, that would be great.