Welcome to Dream.In.Code
Become an Expert!

Join 149,492 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,304 people online right now. Registration is fast and FREE... Join Now!




NEED TO SORT DATA AND BE ABLE TO PULL UNIQUE IDs

 
Reply to this topicStart new topic

NEED TO SORT DATA AND BE ABLE TO PULL UNIQUE IDs, columns values in dataset

buliwyf
6 Apr, 2007 - 01:10 PM
Post #1

New D.I.C Head
*

Joined: 6 Apr, 2007
Posts: 1


My Contributions
Hey guys,

This is my first time here. I'm not sure how this works but here goes... I have a client who needs to pull data from a database and export to word to print. Sounds easy? Well the woman does not have set columns instead it looks like this:

123 Fake Street ----------------------Ben Franklin-----------------------Jan and Bob Smith
77057----------------------$1,230,000 (234D)----------------any additonal information

The dashes represent spaces. The two rows in the field are purposedly off.

Well my thinking is since I have to keep it so disorganized I need to pull each field out of the database using an ID or something. Once I have done that I will plug in the field into the <td> tag. Well it sounds tedious but doable. Well on second look I come to find she has it in alphabetical order with the street name ascending. So I think well maybe I can run a For loop and stick the order of the IDs into an array then pull the records by the numbers stored in the array. Well that hasn't work for me so i researched more and decided my best bet is to store the data in a dataset and call the tablecolumncollection. I do not know how the syntax works for this type of thing, I have tried a datatable foreach datarow type loop but it didn't work. Does anybody have any help? Thanks in advance...


FOR ANYONE WHO WANTS THE SHORT AND SWEET: I NEED TO PULL EACH INDIVIDUAL FIELD IN A ROW ORDERED BY THE COLUMN STREET NAME. I NEED TO STORE THOSE FIELDS(DATA) IN INDIVIDUAL VARIABLES THAT I CAN PLUG INTO INNERHTML TYPE CODE. THANKS IN ADVANCE

This post has been edited by buliwyf: 6 Apr, 2007 - 01:11 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 05:42PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month