I am going crazy! 
I have a form whose record set is an sql query that joins two tables by a where statement: "select this, that from here, there where here.id = there.id..." and it works just fine thank you.
Knowing that is what I set up, I also have some controls that will append to the record source's query "AND" statements that will further filter out records... sqltext = sqltext & " AND thisfield = " & etc etc...
BUT, I was getting errors and looked back to find that the crafted sql query is being modified to be an inner join sql statement... thereby causing syntax errors when I append the " AND this_field = " portion...
How can I disable Access from trying to improve my sql and just do what I ask it to?
Thoughts? Can I set the form's record source using VBA? I imagine that will remain safe from meddling...
Thanks!
-Matt G.
I have a form whose record set is an sql query that joins two tables by a where statement: "select this, that from here, there where here.id = there.id..." and it works just fine thank you.
Knowing that is what I set up, I also have some controls that will append to the record source's query "AND" statements that will further filter out records... sqltext = sqltext & " AND thisfield = " & etc etc...
BUT, I was getting errors and looked back to find that the crafted sql query is being modified to be an inner join sql statement... thereby causing syntax errors when I append the " AND this_field = " portion...
How can I disable Access from trying to improve my sql and just do what I ask it to?
Thoughts? Can I set the form's record source using VBA? I imagine that will remain safe from meddling...
Thanks!
-Matt G.