Click here to Skip to main content
15,891,828 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: reading a text file from the resource file Pin
Ashutosh Phoujdar27-Jan-09 21:23
Ashutosh Phoujdar27-Jan-09 21:23 
GeneralRe: reading a text file from the resource file Pin
moonshaddow28-Jan-09 12:13
moonshaddow28-Jan-09 12:13 
QuestionLooking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby227-Jan-09 13:19
frankiebaby227-Jan-09 13:19 
AnswerRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 3:06
mveDave Kreskowiak28-Jan-09 3:06 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:04
frankiebaby228-Jan-09 6:04 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
frankiebaby228-Jan-09 6:05
frankiebaby228-Jan-09 6:05 
GeneralRe: Looking up Cell data with Mutiple Excel Workbooks running. Pin
Dave Kreskowiak28-Jan-09 16:22
mveDave Kreskowiak28-Jan-09 16:22 
QuestionVBA Access design (sql) view Pin
FMpol27-Jan-09 10:41
FMpol27-Jan-09 10:41 
I need help figuring out how to display the sql view of a query using VBA. I have an Access 2003 database that contains a little over 300 queries. Yikes!

I know in Access you can open a query in Design view and then change the view to SQL view so that you can actually see the Select statement. Instead of doing that more than 300 times to cut and paste the query statement, I would like to write a quick macro to display the information.

I was able to figure out how to loop through all my query objects and display the name, but I can't find a way to actually get at the sql view of the query. Below is the code I have:

Dim obj As AccessObject
Dim dbs As Object
Set dbs = Application.CurrentData

For Each obj In dbs.AllQueries
MsgBox "sql view: " & obj.FullName
Next obj

When I watch the obj data, there isn't any properties for the sql view. I thought this information would be in there. Am I misunderstanding what this object contains? It seems like I'm pretty close because I'm able to see the name of all the queries I have in my DB. What crucial piece of information am I missing?

Thanks,
FMPol
AnswerRe: VBA Access design (sql) view Pin
Dave Kreskowiak28-Jan-09 2:55
mveDave Kreskowiak28-Jan-09 2:55 
GeneralRe: VBA Access design (sql) view Pin
FMpol28-Jan-09 6:08
FMpol28-Jan-09 6:08 
QuestionUsing Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 9:19
IvanIT27-Jan-09 9:19 
AnswerRe: Using Wildcard in Declaring Variables Pin
Dave Kreskowiak27-Jan-09 10:09
mveDave Kreskowiak27-Jan-09 10:09 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 10:37
IvanIT27-Jan-09 10:37 
GeneralRe: Using Wildcard in Declaring Variables Pin
Dave Kreskowiak27-Jan-09 10:46
mveDave Kreskowiak27-Jan-09 10:46 
AnswerRe: Using Wildcard in Declaring Variables Pin
Wendelius27-Jan-09 10:15
mentorWendelius27-Jan-09 10:15 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT27-Jan-09 10:38
IvanIT27-Jan-09 10:38 
GeneralRe: Using Wildcard in Declaring Variables Pin
Wendelius27-Jan-09 12:07
mentorWendelius27-Jan-09 12:07 
AnswerRe: Using Wildcard in Declaring Variables Pin
Guffa28-Jan-09 13:35
Guffa28-Jan-09 13:35 
GeneralRe: Using Wildcard in Declaring Variables Pin
IvanIT30-Jan-09 4:53
IvanIT30-Jan-09 4:53 
QuestionHow to sort data in DataGridView column who contain Date/Time records Pin
ivo7527-Jan-09 8:29
ivo7527-Jan-09 8:29 
AnswerRe: How to sort data in DataGridView column who contain Date/Time records Pin
Wendelius27-Jan-09 10:01
mentorWendelius27-Jan-09 10:01 
AnswerRe: How to sort data in DataGridView column who contain Date/Time records Pin
Jon_Boy27-Jan-09 15:26
Jon_Boy27-Jan-09 15:26 
GeneralRe: How to sort data in DataGridView column who contain Date/Time records Pin
ivo7527-Jan-09 20:11
ivo7527-Jan-09 20:11 
QuestionVBA Excel.Range.FormulaProperty Pin
EliottA27-Jan-09 4:33
EliottA27-Jan-09 4:33 
AnswerSOLVED Pin
EliottA27-Jan-09 4:41
EliottA27-Jan-09 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.