Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chunked of sql in VB recording

Status
Not open for further replies.

bomal

Programmer
Aug 21, 2002
1
SE
Hi,

hope someone can help me. I'm trying to, from excel via VB, connect to SQL Server and retreive records to an excelsheet.
I've created the VB code via VB recording BUT the VB editor shows only a part of the (pretty extensive) SQL code and uses ,,, to represent the remaining part of the code.

Why is that ? Can I do anything about it ?

I,ve tried to incorporate the missing SQL manually but then I get all sorts of syntax errors.

Many thanks in advance

 
If you have ODBC connnections sorted out, you should be able to query the database using MS Query - no need to write the SQL, it'll do it for you and hold it in a .dqy file - have a look, you may like it ;-)
Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top