Hi All
I'm hoping I can get some help . I'm new to VBA and this is really my first time using it.
I have designed a form in excel that has 3 textboxes. The textboxes are specifically named WQZN, StartDate and EndDate.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I currently have a button setup so that when it is clicked a macro will run which as a result will open an access query macro and update about 7 tables. At the moment the macro runs fine, however I have to enter a lot of information when it runs as the criteria in the query is setup as “Between [Start Date] And [End Date]” and “Like “QZ” & [WQZ] & “*””.
<o></o>
The data that gets entered for all of these parameters is exactly the same, so what I’m looking to do is create a form in excel (already done) on which the access queries will draw the data from the specific textboxes and run the query upon click of the command button on the bottom of the form.
<o></o>
The query outputs the data into an access table which in turn is linked to PivotReports. I don’t need it to return any data to me, all I need is for the criteria to be updated depending on what is entered into the excel form.
<o></o>
I hope that makes sense, I have tried searching for a solution but can’t seem to put anything together, so any help would be great.
I'm hoping I can get some help . I'm new to VBA and this is really my first time using it.
I have designed a form in excel that has 3 textboxes. The textboxes are specifically named WQZN, StartDate and EndDate.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I currently have a button setup so that when it is clicked a macro will run which as a result will open an access query macro and update about 7 tables. At the moment the macro runs fine, however I have to enter a lot of information when it runs as the criteria in the query is setup as “Between [Start Date] And [End Date]” and “Like “QZ” & [WQZ] & “*””.
<o></o>
The data that gets entered for all of these parameters is exactly the same, so what I’m looking to do is create a form in excel (already done) on which the access queries will draw the data from the specific textboxes and run the query upon click of the command button on the bottom of the form.
<o></o>
The query outputs the data into an access table which in turn is linked to PivotReports. I don’t need it to return any data to me, all I need is for the criteria to be updated depending on what is entered into the excel form.
<o></o>
I hope that makes sense, I have tried searching for a solution but can’t seem to put anything together, so any help would be great.