473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Print multiple data fields (pre-formated) into a text box

1
I am trying to make a database application. Users will input data into a number of fields(saved to an access database) and then click a button to populate a text box with all the data entered in a predetermined format. I.E.:

User types in name, street address, city, state, and zip into five different boxes.
They could then hit a button and a sixth box would take the data and display it like

name
street address
city, state zip

It would format it on multiple lines and add commas or other characters in between the sets of data.

Any hints or directions to information on doing this would be appreciated.

Chris
(I am using VB 2005)
Nov 5 '06 #1
2 1642
albertw
267 100+
I am trying to make a database application. Users will input data into a number of fields(saved to an access database) and then click a button to populate a text box with all the data entered in a predetermined format. I.E.:

User types in name, street address, city, state, and zip into five different boxes.
They could then hit a button and a sixth box would take the data and display it like

name
street address
city, state zip

It would format it on multiple lines and add commas or other characters in between the sets of data.

Any hints or directions to information on doing this would be appreciated.

Chris
(I am using VB 2005)
hi
make your new textbox 'multiline' and use something like:
text1.text = Name & vbCrLf & Street & vbCrLf & City & ", " & State & " " & Zip
Nov 5 '06 #2
Killer42
8,435 Expert 8TB
hi
make your new textbox 'multiline' and use something like:
text1.text = Name & vbCrLf & Street & vbCrLf & City & ", " & State & " " & Zip
You might also consider using the vbNewline constant rather than vbCrLf. Same value, I believe, but a more "readable" name.
Nov 5 '06 #3

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

Similar topics

5
by: MouseHart | last post by:
I've written a simple program in VB 6.0 to list all my MP3 files. To show them on the screen I used an MSFlexGrid named TextGrid (which is not associated with any table or text file) in the...
1
by: Bob T | last post by:
Hi, I have been using SQLDataAdapters and Datasets in my project. I have a goal to simplify the project. Each data adapter has a corresponding dataset it retrieves values into. Even though...
3
by: SpamProof | last post by:
I'd like to be able to print multiple documents are once using vb.net. What is the best way to do this with out having to print each document one at a time via a loop . Can't I send them all to...
5
by: sams | last post by:
I've seen this covered before, but I just don't understand Java very well. I apologize if this is a repeat. Basically, I need a text/java style submit form with multiple hidden fields. It would...
1
by: Daves | last post by:
a SQL query can return multiple data tables eg SELECT expression1 ... SELECT expression2 ... Can I in ASP.Net utilise this to do fewer data fetches from the server, e.g. selectively binding...
1
by: pconrad | last post by:
I've got a syslog server posting to MS SQL. It works great as far as posting all the data. However, it puts all the useful information into one big text field called message. How can I parse that...
13
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them...
2
by: jamiejamie | last post by:
I need to print multiple AjaxTabPanels as one print out. I'm not completely sure how to go about doing it, any help would be great. Currently it will only print the tab that is selected.
1
by: cmpirie | last post by:
I have a web program where I need to print multiple pages from a Print Button on the first page. (Each page also has it's own print button). How can I do this?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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
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,...

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.