If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Query a DB2 via VBA by using String-Function cause problems?!?!?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-14-04, 04:25
MK_GE MK_GE is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Query a DB2 via VBA by using String-Function cause problems?!?!?

Hello Forum!

I'm trying to query a DB2 via VBA by using a string-function in the statement like this:

SELECT ... FROM ... LEFT JOIN ... ON LEFT(string, 4) ...

The thing is, that the DB2 seemed to have problem with the SQL/JET string-function LEFT. I also tried to use the SQL-DB2-conform string-function SUBSTR, but there I get also a SQL-TOKEN-Error-Message from VBA. When I use MS Access as a front-end for the DB2 by linking to the tables, there are no problems by using the left-string-function in the SQL-Statement.

Perhaps I used the wrong Syntax or is there any other possibility to realize it?

CU

Michael
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On