[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

space between strings

Posted on 2006-06-02
3
Medium Priority
?
151 Views
Last Modified: 2010-04-07
This is probable a really dumb question, for the life of me I can't get it to work. I am concatinating two strings together, but they are running together, and there should be a space between them. Here is my code:
SQL = " HomesteadID =" & "'" & Me.tbParcel.Text & "'" & " " &  "and " & " " & "PropID = " & "'" & frmMain.Text1.Text & "'"

This is what the output looks like in the immediate window:
HomesteadID ='31-39-19-00001-5700-00020.02003'andPropID = '31-39-19-00001-5700-00020.0'
Thanks in advance.
0
Comment
Question by:ircpamanager
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
lunchbyte earned 1000 total points
ID: 16815959
sql = " HomesteadID = '" & Me.tbParcel.text & "' and PropID = '" & frmMain.Text1.text & "' "
0
 
LVL 5

Author Comment

by:ircpamanager
ID: 16815981
I knew it was easy, thanks alot
0
 
LVL 5

Expert Comment

by:lunchbyte
ID: 16816005
I remember my first time concatenating the strings. It can be confusing but once you get it, you will be fine forever.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month20 days, 11 hours left to enroll

865 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