Working on an application as a database reader. It has three forms, and my problem lies with the second. The first is able to pull the data easily enough en-masse from my database into a gridview to show everything. The second is a more easy to read form shown below:

As you can see it contains comboboxes and textboxes. I have my data there ready to be shown, dataset etc is all on the form, i have the comboboxes linked to the data set. What i need to do is get the database to fill all of the text/combo boxes, with the data obviously changing on different people. What i can't seem to work out is what i need to write. I have spoken to a friend who said what i need to do is write an SQL query that will select the row i want and fill it, which requires a separate fill per each item.
What i'd like to know is:
1) Is this correct
2) A nudge in the right direction if it is or if it isn't.
I have tried to write the SQL query but it hasn't come out correctly as i can't seem to figure out the last requirement (WHERE clause), have tried looking through my notes and ADO.net with C# 2008 book, as well as online but nothing jumps out at me or seems to help me.
Any help would be greatly appreciated. Please note i am not asking anybody to do this or for specific code, just a nudge or an explanation that could help me understand.

New Topic/Question
Reply




MultiQuote








|