Can't get this query to work...

B

Brady Snow

I can get this query to work in Access but when I try to
compile it in a form is doe not compile. Here is the
query:

strSQL = "SELECT MixDesignID.PlantID, MixDesignID.MixID,
MixDesignID.StoneName, MixDesignID.StoneWt " &_
"FROM (MixDesignID INNER JOIN PlantID ON
MixDesignID.ID = PlantID.ID) INNER JOIN StoneID" &_
"ON (MixDesignID.ID = StoneID.ID)" &_
"WHERE (((MixDesignID.PlantID)= " & ME.PlantID &_
") AND ((MixDesignID.MixID)= " & ME.MixID & "))"


Any help would be greatly aappreciated!

Regards,

Brady Snow
Mckinney, Texas
 
M

Matt Weyland

Try adding as space after the ampersand and before the
underscore at the end of your lines.

Another suggestion is to create the query in the query
builder of Access then go to the SQL view of the query and
copy that to your form_current() action.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top