Click here to Skip to main content
15,916,693 members
Home / Discussions / Database
   

Database

 
Questionscripts not single statements - ORACLE Pin
Malcolm Smart27-Jun-06 3:59
Malcolm Smart27-Jun-06 3:59 
QuestionIntegration... Pin
d24k104d26-Jun-06 15:05
d24k104d26-Jun-06 15:05 
AnswerRe: Integration... Pin
Paul Conrad26-Jun-06 18:35
professionalPaul Conrad26-Jun-06 18:35 
Question[Message Deleted] Pin
PyroManiak26-Jun-06 10:53
PyroManiak26-Jun-06 10:53 
AnswerRe: Open "Edit" form based on SQL item? Pin
Colin Angus Mackay27-Jun-06 4:33
Colin Angus Mackay27-Jun-06 4:33 
GeneralRe: Open "Edit" form based on SQL item? Pin
PyroManiak27-Jun-06 6:11
PyroManiak27-Jun-06 6:11 
GeneralRe: Open "Edit" form based on SQL item? Pin
Colin Angus Mackay27-Jun-06 12:27
Colin Angus Mackay27-Jun-06 12:27 
AnswerRe: Open "Edit" form based on SQL item? Pin
Colin Angus Mackay27-Jun-06 12:47
Colin Angus Mackay27-Jun-06 12:47 
I know that isn't really much help to you - but your query shows your skill level and the answer pitched at that skill level is too long for a forum response.

My general advice is to not rely on wizards and binding until you understand how database interaction works. Then you can decide if wizards and binding are for you (I rejected them because they push me in to really bad designs - they are great for quick demos are conferences to woo the managers, but as a serious tool there is a long way to go yet.)

I'd say that the best advice for you is to get a book on ADO.NET and find out how database interaction actually works rather than rely on wizards and binding.

As a high level answer:

PyroManiak wrote:
new form loads (should be on current record, not record 1 which requires the user to navigate back and forth to find the right item.)


From your list box you will know what row you picked. You can use that information when populating the new form in order to get the correct row from the database. I don't know where these back and forward buttons come from. I'd guess it is some crazy wizard (hateful things so they are) that did that for you because it would require a fair bit of skill to write that sort of functionality - based on your question I'm guessing that is currently beyond your ken at the moment.

PyroManiak wrote:
I can't figure out how to do this without editing the SQL query to accept a parameter.


I'm assuming you mean parameter on the query - You will always need that if you want only one specific row. The parameter (or parameters) will define the value of the primary key for the row that you want. There is no way of getting around that unless you plan to pull across the entire table (and that is a waste of memory and network bandwidth)


Scottish Developers events:
* .NET debugging, tracing and instrumentation by Duncan Edwards Jones and Code Coverage in .NET by Craig Murphy
* Developer Day Scotland: are you interested in speaking or attending?

My: Website | Blog
GeneralRe: Open "Edit" form based on SQL item? Pin
PyroManiak27-Jun-06 12:58
PyroManiak27-Jun-06 12:58 
GeneralRe: Open "Edit" form based on SQL item? Pin
PyroManiak27-Jun-06 13:08
PyroManiak27-Jun-06 13:08 
GeneralRe: Open "Edit" form based on SQL item? Pin
Colin Angus Mackay27-Jun-06 13:27
Colin Angus Mackay27-Jun-06 13:27 
QuestionSQL Server Function Call [modified] Pin
tadhg8826-Jun-06 3:16
tadhg8826-Jun-06 3:16 
AnswerOT Pin
Colin Angus Mackay27-Jun-06 4:37
Colin Angus Mackay27-Jun-06 4:37 
GeneralRe: OT Pin
tadhg8827-Jun-06 5:06
tadhg8827-Jun-06 5:06 
GeneralRe: OT Pin
Colin Angus Mackay27-Jun-06 5:12
Colin Angus Mackay27-Jun-06 5:12 
GeneralRe: OT Pin
tadhg8827-Jun-06 6:00
tadhg8827-Jun-06 6:00 
GeneralRe: OT Pin
Eric Dahlvang27-Jun-06 9:19
Eric Dahlvang27-Jun-06 9:19 
GeneralRe: OT Pin
Colin Angus Mackay27-Jun-06 12:25
Colin Angus Mackay27-Jun-06 12:25 
GeneralRe: OT Pin
tadhg8828-Jun-06 0:01
tadhg8828-Jun-06 0:01 
QuestionRe: SQL Server Function Call Pin
Eric Dahlvang27-Jun-06 9:13
Eric Dahlvang27-Jun-06 9:13 
AnswerRe: SQL Server Function Call Pin
tadhg8828-Jun-06 0:44
tadhg8828-Jun-06 0:44 
GeneralRe: SQL Server Function Call Pin
Eric Dahlvang28-Jun-06 4:02
Eric Dahlvang28-Jun-06 4:02 
GeneralRe: SQL Server Function Call Pin
tadhg8828-Jun-06 5:48
tadhg8828-Jun-06 5:48 
GeneralRe: SQL Server Function Call Pin
Eric Dahlvang28-Jun-06 5:59
Eric Dahlvang28-Jun-06 5:59 
GeneralRe: SQL Server Function Call Pin
tadhg8829-Jun-06 4:10
tadhg8829-Jun-06 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.