Hey I just sort of learned how to put my SQL statements into VBA (or atleast write them out), but I have no idea how to get the data returned?
I have a couple forms (chart forms) based on queries that i run pretty regular parameters against, just altering timeframe (like top 10 sales for the month kinda of thing). Then I have procedures that automatically transport the chart object into a powerpoint presentation. So I have all these queries pre-built (like 63), and the chart forms to match (uh, yeah….63…i know this is bad), and then all these things set up on “open/close” events triggering the next (its like my very best attempt at being a hack….or dominos; whichever you prefer).
So I was trying to learn how to use SQL statements in VBA, so that eventually I can do all this in there (I may still need to keep all those chart forms but I don’t know because I obviously lack understanding).
So aside from the question that I asked at the top, can anyone offer advice?
thanks
It’s a bit dated, so you might want to grab a book on the subject. But, here’s a ton of access resources and some tutorials and examples as well. But, basically …
Per comment: Take a look at the recordset class. It contains a collection called Fields that are the columns that are returned from your query. Without knowing your schema, it’s hard to say, but something like …
Like I said, your best bet is to grab a book on this subject, they have tons of examples.