I'm trying to write a little application in VB 2005 that prints address labels based on user input, but having verified everything works using textbox input, I want to step it up a bit and use a SQL Query to drive the various address fields. That's where I'm running into trouble...
I went to MSDN to see if I couldn't figure out the specific what, how & why based on their documentation, but the most I could get out of that was that I should be using a DataSet. After that it's just a series of tutorials on how to use various wizards, which don't really tell me anything.
The labels will be printed on a DYMO label printer; the fields are set as following (using textbox input)
DYMOLabel.SetField("Street1", tbxStreet1.Text)
DYMOLabel.SetField("State", tbxState.Text)
...
and so on.
My SQL Query will return one row every time it's run, with your basic Address information in columns (CompanyName, StreetAddress1, StreetAddress2, State, ZIP, Country)
All I want to do is instead of using
DYMOLabel.SetField("Street1", tbxStreet1.Text)
I want to use (the equivalent of)
DYMOLabel.SetField("Street1", WhateverDataBoundConstructINeedToUseToGetSQLData.StreetAddress1)
Any ideas on what where or how I should be doing this?
I went to MSDN to see if I couldn't figure out the specific what, how & why based on their documentation, but the most I could get out of that was that I should be using a DataSet. After that it's just a series of tutorials on how to use various wizards, which don't really tell me anything.
The labels will be printed on a DYMO label printer; the fields are set as following (using textbox input)
DYMOLabel.SetField("Street1", tbxStreet1.Text)
DYMOLabel.SetField("State", tbxState.Text)
...
and so on.
My SQL Query will return one row every time it's run, with your basic Address information in columns (CompanyName, StreetAddress1, StreetAddress2, State, ZIP, Country)
All I want to do is instead of using
DYMOLabel.SetField("Street1", tbxStreet1.Text)
I want to use (the equivalent of)
DYMOLabel.SetField("Street1", WhateverDataBoundConstructINeedToUseToGetSQLData.StreetAddress1)
Any ideas on what where or how I should be doing this?