largeselection
Active Member
- Joined
- Aug 4, 2008
- Messages
- 358
Hello,
I have some code and I can't figure out how to continue it on a new line. I have to be able to do it somehow otherwise it's going to be a really long (horizontally) row. I've tried a bunch of combinations of " _ , "_, _, etc and nothing seems to work for some reason. Any help would be much appreciated.
That code works fine, but I need to add multiple more Selected columns to pull. Currently that code is all in one row. So I'd like to be able to do something like what I indicated below, but nothing seems to work.
This would be ideal, where all the columns I'm selecting could be on a few rows, then the FROM part on a separate row, then the WHERE part on another row.
Is this possible?
I have some code and I can't figure out how to continue it on a new line. I have to be able to do it somehow otherwise it's going to be a really long (horizontally) row. I've tried a bunch of combinations of " _ , "_, _, etc and nothing seems to work for some reason. Any help would be much appreciated.
Code:
dim Resp as string
.CommandText = "Select " & Resp & ".X FROM " & Resp & ".txt " & Resp & " WHERE " & Resp & ".Tel=1492"
That code works fine, but I need to add multiple more Selected columns to pull. Currently that code is all in one row. So I'd like to be able to do something like what I indicated below, but nothing seems to work.
Code:
dim Resp as string
.CommandText = "SELECT" & Resp & ".X, " & Resp & ".Y, " & Resp & ".Z, _
" & Resp & ".M, " & Resp & ".N, " & Resp & ".O _
FROM " & Resp & ".txt " & Resp & " _
WHERE " & Resp & ".Tel=1492"
This would be ideal, where all the columns I'm selecting could be on a few rows, then the FROM part on a separate row, then the WHERE part on another row.
Is this possible?