473,503 Members | 756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Concatenation problem displaying in combo box

1 New Member
This is basically my problem I have data comming from a database and storing fields in a variable ie

Name = ORs("Name")
Address= ORs("Address")
DisplayVar = Name: Address


My goal is to display these values in a combo box as a concatenated variable.
However, by example..here is my problem
when I run a for loop to add DisplayVar to a combo box I get values exactly like this:

Tom Smith 3444 Taylor Road
Chris Stevens 34 McDonald Avenue
My goal is to have this type of display within the combo box:
Tom Smith 3444 Taylor Road
Chris Stevens 34 McDonald Avenue

ie I the fields
I have tried string functions to add extra spacies to the shorter names to make everything a consistent length, but the alignment is still off.
Does anyone have any suggestions ? Thanks for your help as it is greatly appreciated.
NOTE.. i noticed how this posted and never had the fields lined up.. But I think the post is clear in the sense I want the fields ie Tom's address and Chris's address to line up under each other.
Nov 29 '07 #1
1 1344
gits
5,390 Recognized Expert Moderator Expert
hi ...

welcome to TSDN ...

could you post what you have tried? ... may be adding a number of   instead of ' ' could do the trick?

kind regards
Nov 29 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
9351
by: B | last post by:
I know there are several ways to speed up combo boxes and form loading. Most of the solutions leave rowsource of the combo box blank and set the rowsource to a saved query or an SQL with a where...
3
1277
by: arthur-e | last post by:
Thanks in advance!! I've looked at fConcatFld but that doesn't seem to be what i'm looking for or I just can't figure it out. I'm trying to have a button select records based on two combo boxes -...
6
5192
by: kellysgirl | last post by:
Option Explicit On Option Strict On Imports System.Globalization Public Class MainForm Private Sub exitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
33
5485
by: buss123 | last post by:
Hi all, combo box script code was working in IE perfectly with all modes but OnChange event was not working in FireFox(editable mode, if we select valuese that combo box values r...
0
7203
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7089
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.