I have the following SQL code in my databse as a querry.
SELECT Sheet1.ID, Sheet1.Field6, Sheet2.ID, Sheet2.Field6
FROM Sheet1 INNER JOIN Sheet2 ON Sheet1.ID = Sheet2.ID
WHERE ((([Sheet2]![Field6])<>[Sheet1]![Field6] Or ([Sheet2]![Field6])
Is Null));
Which does what I want. But I would prefer rather then hard code the
table name I would rather a dialog box pop up and ask for a table name
or browse for one. I have no idea how to do this with SQL. Any help
would be appreciated. I am not a programmer but I am writing something
I need done and taking a long time doing it, so answer as layman as
possible or with examples if you can.
Much appreciated!
Thanks
John
SELECT Sheet1.ID, Sheet1.Field6, Sheet2.ID, Sheet2.Field6
FROM Sheet1 INNER JOIN Sheet2 ON Sheet1.ID = Sheet2.ID
WHERE ((([Sheet2]![Field6])<>[Sheet1]![Field6] Or ([Sheet2]![Field6])
Is Null));
Which does what I want. But I would prefer rather then hard code the
table name I would rather a dialog box pop up and ask for a table name
or browse for one. I have no idea how to do this with SQL. Any help
would be appreciated. I am not a programmer but I am writing something
I need done and taking a long time doing it, so answer as layman as
possible or with examples if you can.
Much appreciated!
Thanks
John
Comment