Click here to Skip to main content
15,898,134 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Append Files Pin
riced7-May-09 2:58
riced7-May-09 2:58 
GeneralMessage Closed Pin
7-May-09 4:41
vijay24827-May-09 4:41 
GeneralRe: Append Files Pin
riced7-May-09 6:03
riced7-May-09 6:03 
GeneralMessage Closed Pin
10-May-09 21:52
vijay248210-May-09 21:52 
GeneralRe: Append Files[Solved above message] Pin
vijay248211-May-09 2:29
vijay248211-May-09 2:29 
Questionvisual basic incorporating COM Pin
Rakesh57-May-09 2:08
Rakesh57-May-09 2:08 
AnswerRe: visual basic incorporating COM Pin
Dave Kreskowiak7-May-09 5:20
mveDave Kreskowiak7-May-09 5:20 
QuestionVB6 string mutates Pin
codefinger7-May-09 1:38
codefinger7-May-09 1:38 
Hello all:

I am hoping someone might be able to shed some light on this!

I wanted to pass the following string as a sql query in VB6 (it is not by choice I am doing this in vb6, it is an old app)

sql = "Select enteredvalue from Eln_property_values where property_key = 2381 and section_key IN (select primary_key from eln_sections where Name = 'Version Overview Page' and section_set_key IN (select Target_key from eln_references where Collection_key = 25))"

the strange thing is when the string is created it becomes: (the issue is at the end)

sql = "Select enteredvalue from Eln_property_values where property_key = 2381 and section_key IN (select primary_key from eln_sections where Name = 'Version Overview Page' and section_set_key IN (select Target_key from eln_references where Collection_key = "

It seems to drop the value and the two parentheses. Strange??

Even stranger is if I replace "...Collection_key=25))" with ...Collection_key XYZ))" it becomes ...Collection_key XYy". I have no idea what is happening (I do not have alot of experience with VB6).

I am pretty sure I could break up the nested sql and run each select separately, but that does not seem like a great fix as there will be some unnecessary code and three recordsets opening and closing. Any help or thoughts would be most welcome,

Thank you
AnswerRe: VB6 string mutates Pin
riced7-May-09 1:53
riced7-May-09 1:53 
GeneralRe: VB6 string mutates Pin
codefinger7-May-09 2:38
codefinger7-May-09 2:38 
GeneralRe: VB6 string mutates Pin
ChandraRam7-May-09 22:16
ChandraRam7-May-09 22:16 
GeneralRe: VB6 string mutates Pin
codefinger8-May-09 2:03
codefinger8-May-09 2:03 
GeneralRe: VB6 string mutates Pin
Thomas Krojer8-May-09 2:17
Thomas Krojer8-May-09 2:17 
QuestionRemove Similar Lines Pin
vijay24827-May-09 1:23
vijay24827-May-09 1:23 
AnswerRe: Remove Similar Lines Pin
riced7-May-09 2:16
riced7-May-09 2:16 
GeneralMessage Closed Pin
7-May-09 2:28
vijay24827-May-09 2:28 
GeneralRe: Remove Similar Lines Pin
riced7-May-09 6:52
riced7-May-09 6:52 
GeneralMessage Closed Pin
10-May-09 21:43
vijay248210-May-09 21:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 2:28
riced11-May-09 2:28 
GeneralMessage Closed Pin
11-May-09 2:54
vijay248211-May-09 2:54 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 3:06
riced11-May-09 3:06 
GeneralMessage Closed Pin
11-May-09 3:43
vijay248211-May-09 3:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 5:32
riced11-May-09 5:32 
Questioncreate process Pin
hrishiS7-May-09 1:15
hrishiS7-May-09 1:15 
AnswerRe: create process Pin
Eddy Vluggen7-May-09 1:29
professionalEddy Vluggen7-May-09 1:29 

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.