Can you create a Macro in Access 2007 to create a number of queries for you.?

Trying to automate the creation of 121 queries, any way to do this in a macro or just by hand?

Can you create a Macro in Access 2007 to create a number of queries for you?

Do you mean run queries? If so, yes using the ‘OpenQuery’ command.

If you want create queries, I assume you mean generate SQL? then you need to know how to write SQL (via the SQL View) whioch can be called by the same command in a macro.

What is it you actually want to do?

There are SQL commands that can create tables, fields and change data using the SQL syntax language see http://www.about-access-databases.com/sql-query-syntax.html

One Response to “Can you create a Macro in Access 2007 to create a number of queries for you.?”

  1. Ben Says:

    Can you create a Macro in Access 2007 to create a number of queries for you?

    Do you mean run queries? If so, yes using the ‘OpenQuery’ command.

    If you want create queries, I assume you mean generate SQL? then you need to know how to write SQL (via the SQL View) whioch can be called by the same command in a macro.

    What is it you actually want to do?

    There are SQL commands that can create tables, fields and change data using the SQL syntax language see http://www.about-access-databases.com/sql-query-syntax.html
    References :
    Ben Beitler – Access database trainer and developer.
    http://www.about-access-dataabases.com
    http://www.access-database.com
    http://www.excel-spreadsheet.com
    http://www.trainingpartnership.biz

Leave a Reply