Ad-Hoc Query Builder in Access
I'm trying to code a macro in Access where i can build any type of query to query the database, whcih can be saved and executed when required. Also i wanted to export the data to an Excel sheet.
I started coding this macro and ended up sucessfully to a point where can build only select queries and export them to Excel. I used Access 2003.
Can anyone help me with the coding where in i can build and execute join queries too? I want to change this interface completely and should also be able to choose multiple tables to build join queries by choosing selected fields of a table (like a wizard interface), use comparison operators like NOT, AND, OR, sort fields, group by, order by functions like in the screenshots attached.
I am entirely new to coding macros in Access. I know VB coding and can do it Excel to some extent.
PLEASE :help
Ad-Hoc Query Builder in Excel
I had been racking my brains on coding for an ad-hoc query builder in Excel that will be used for building SQL queries in Access. :banghead: :banghead:
It is required for a MIS process at my work which aids something that is process-critical.
I've included a sample database in Access in which i've included the coding of the QB which i started developing and finished it with lots of difficulty.
It can build only select queries & export the results to an Excel sheet.
I'm a bit comfortable with Excel macros than Access, so i wud like all this coding to be migrated to Excel in which i want to choose Access databases and build queries.
I want this code to be modified in such a way that it can build and execute join queries as well. In fact i want it in such a way that any type of query can be built.
I also wanted to have an option to save queries that are built to the DB & executed as and when required just by choosing the query name at runtime.
I want this query builder interface to be migrated in Excel like it is in the screenshots, since i want to make the QB interface a lot more easier to handle and user-friendly.
Can anyone help me in converting this QB interface and coding like those in the screenshots and include all the new features that are required?