From PM - Yours works, mine is using a large hammer on my head
From PM::: I’ve removed the banging of head on wall sounds from the posts
(@,,O)
OK, I work for Honey and Chocolate... and I get to eat first BEFORE you give yourself the concussion.
Let's take a look at that SQL string
On the code line right below it type the following:
Run the slide show
Run the BigI on slide3
<ctrl><g> to open the immediate window.
You should have something like:
Copy this text from the window
Open your database
Open a new query in design mode
Switch to SQL view
Paste your string
Run (Click on the ! in the ribbon)
See what happens
Now, I cheat with the SQL, I build it using the visual editor when I can (^_^)
So, build the query in Access so that it returns what you want, then switch to the SQL view and do copy, paste it into the PPTM vba code, place the quotes so that the string is formed correctly (remember: Text will need ' ' in the WHERE clause ie:
(SQL View: Open a query or start new, right click in an empty part of the the tables area, in the popup select sql view - there are other ways such as the ribbon and the applicaiton window bottom right corner icons)
From PM::: I’ve removed the banging of head on wall sounds from the posts
(@,,O)
Originally posted by osmosisgg
OK, I work for Honey and Chocolate... and I get to eat first BEFORE you give yourself the concussion.
Let's take a look at that SQL string
On the code line right below it type the following:
Code:
debug.print zstrSQL
Run the BigI on slide3
<ctrl><g> to open the immediate window.
You should have something like:
SELECT [Liable], [Q], ...
Copy this text from the window
Open your database
Open a new query in design mode
Switch to SQL view
Paste your string
Run (Click on the ! in the ribbon)
See what happens
Now, I cheat with the SQL, I build it using the visual editor when I can (^_^)
So, build the query in Access so that it returns what you want, then switch to the SQL view and do copy, paste it into the PPTM vba code, place the quotes so that the string is formed correctly (remember: Text will need ' ' in the WHERE clause ie:
Code:
"SELECT ... FROM ... WHERE( "[FIELD]= 'searchtext');
Comment