473,508 Members | 2,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Query To String Converter

I thought I remember a utility that lets you cut a Select statement
from a query and it converts it to be used in VB. Takes the work out
of making sure the syntax is correct.

Anyone know of such a utility?

Jan 1 '07 #1
3 3583
"BerkshireGuy" <be*************************@yahoo.comwrote in
news:11*********************@h40g2000cwb.googlegro ups.com:
I thought I remember a utility that lets you cut a Select statement
from a query and it converts it to be used in VB. Takes the work out
of making sure the syntax is correct.

Anyone know of such a utility?
The SQL created by the Query Wizard? in Access is convoluted, verbose,
inefficient, ugly and bad. (For the young: It sucks!)

One might consider going from the String to to the Stored Definition as a
more productive route. After one has learned to write SQL, many previously
puzzling tasks may seem simple.

In any case the QueryDef's SQL (string property) holds the SQL string.

--
lyle fairfield
Jan 1 '07 #2
Thanks Lyle:

I don't think it's clear. I know how to write SQL, but sometimes I
want to take a query and use the same logic (select statement) in VB
(perhaps in a recordset or whatever). I usually just copy and paste -
but then you need to fix all the syntax - single quote instead of
double, etc. I was wondering if there was a program that formatted a
querys SQL for VBA use.

-=B

Lyle Fairfield wrote:
"BerkshireGuy" <be*************************@yahoo.comwrote in
news:11*********************@h40g2000cwb.googlegro ups.com:
I thought I remember a utility that lets you cut a Select statement
from a query and it converts it to be used in VB. Takes the work out
of making sure the syntax is correct.

Anyone know of such a utility?

The SQL created by the Query Wizard? in Access is convoluted, verbose,
inefficient, ugly and bad. (For the young: It sucks!)

One might consider going from the String to to the Stored Definition as a
more productive route. After one has learned to write SQL, many previously
puzzling tasks may seem simple.

In any case the QueryDef's SQL (string property) holds the SQL string.

--
lyle fairfield
Jan 2 '07 #3
Hi -
You might be thinking of SQL Grabber. It's freeware available at Applecore.
http://www.applecore99.com/dld/dld001.asp

HTH - Bob

BerkshireGuy wrote:
>Thanks Lyle:

I don't think it's clear. I know how to write SQL, but sometimes I
want to take a query and use the same logic (select statement) in VB
(perhaps in a recordset or whatever). I usually just copy and paste -
but then you need to fix all the syntax - single quote instead of
double, etc. I was wondering if there was a program that formatted a
querys SQL for VBA use.

-=B
I thought I remember a utility that lets you cut a Select statement
from a query and it converts it to be used in VB. Takes the work out
[quoted text clipped - 10 lines]
>>
In any case the QueryDef's SQL (string property) holds the SQL string.
--
Message posted via http://www.accessmonster.com

Jan 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3658
by: ma740988 | last post by:
The string object value_f doesn't produce the right output. At issue, - I suspect - is the conversion from string to int with istringstream. An alternate approach? Thanks in advance #include...
1
5802
by: Mark Rae | last post by:
Hi folks, Apologies - am having a bit of a "senior moment"... Is there a way to convert a string containing escaped characters into a verbatim string literal? I.e. converting something like...
17
2013
by: Dinsdale | last post by:
I would like to compare a string value to a pre-determined list of other strings. Is there a simple way to do this in one statements like this: if(strMystring.ToUpper() == ("STRING1"| "STRING2"|...
26
3773
by: Neville Lang | last post by:
Hi all, I am having a memory blank at the moment. I have been writing in C# for a number of years and now need to do something in VB.NET, so forgive me such a primitive question. In C#, I...
3
1035
by: Jack | last post by:
#include <string> #include <iostream> int main(){ string s= "Application"; return 0; } What am i doing wrong, I get an error message saying 'string undeclared
6
15648
by: DaTurk | last post by:
I'm converting MC++ to C++/CLI and for some reason it's not cool with static const System::String^ How am I supposed to have static constant strings then?
8
71564
by: Pim75 | last post by:
Hello, I'm defining a string array like: Dim strArray() As String = {"1", "2"} Can I add some values to this string array later in the code? It's not clear to me how to do this. I hope...
6
1969
by: John Kotuby | last post by:
Hi all, I am using a 3rd party program in a VS2005 web project. The tool takes as input a string containing HTML and converts it to RTF. I have been creating a page by dynamically loading...
17
2287
by: Sumit | last post by:
hi, I have a url which is a char * char * url = "/url=%2Fhome%2Fsumit%2Fpackages%2Fmyxml.xml"; when i send this URL to http server it was like - "/url=/home/sumit/pacakges/myxml.xml" but...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7393
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5635
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3206
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
426
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.