Quote:
Originally Posted by Brendan Bartley
Hi All
I need to be able to let a user create a new query in a form. So I want the user to be able to click a command button and see the Create new Query Dialog Box.I have tried several runcommand options and cannot get it working
Thanks
|
I'm sorry, but I have to ask WHY do you need to let a user create a new query in your program? If they need to do their own queries then it should be done from a separate linked database and they can go into the QBE grid from there.
Also, this should be a split database (frontend on user's machine and backend on the file server).
You can, however, with a lot of coding create a form which would let users select the tables and criteria and you build the query on the fly which then can be viewed. However, this should not be saved in the database (unless you save the SQL string in a table somewhere and then pull it out for them).
So what is it that you are really trying to do for the user and what would be the problem of them having a linked database where they can create all the queries they want?