?
Solved

Multi Line Query

Posted on 2004-04-12
7
Medium Priority
?
405 Views
Last Modified: 2012-06-27
Here is a simple question but I will offer 500 pts b/c I've been looking for a while and can't find the answer.

how can I create a multi line query for example in Ms Access I do this:
[Field1] & Chr(13) & Chr(10) & [Field2] as expr1

I want to recreate the same in vb.net query.
0
Comment
Question by:moralju
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
7 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10810055
[Field1] & vbcrlf & [Field2]

now I am not quite sure if you are referring to the access side or the vb.net side but :)
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10810061
wait you must mean the SQL side ... that is DB dependant what DB are you using ?
0
 
LVL 1

Author Comment

by:moralju
ID: 10810106
I'm using SQL with a vb.net interface.
When I configure the sqlAdapter I create a query to filter the data.
thats where I want to add the multi line field...
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10810133
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 2000 total points
ID: 10810136
full example.

authors.first_name + Char(10) + Char(13) + authors.last_name AS AuthorName
0
 
LVL 1

Author Comment

by:moralju
ID: 10810273
Thats what I was looking for...

thanks...

fast response by the way!!!
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 10810283
anytime :)
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question