Click here to Skip to main content
15,905,558 members
Home / Discussions / Database
   

Database

 
GeneralRe: Dynamic where Clause Pin
Peet Schultz5-Aug-03 5:57
Peet Schultz5-Aug-03 5:57 
GeneralRe: Dynamic where Clause Pin
dabuskol5-Aug-03 18:27
dabuskol5-Aug-03 18:27 
Generalmozooo Pin
Anonymous3-Aug-03 22:36
Anonymous3-Aug-03 22:36 
GeneralRe: mozooo Pin
Anonymous3-Aug-03 22:38
Anonymous3-Aug-03 22:38 
GeneraloledbCommand Pin
betengan3-Aug-03 15:13
betengan3-Aug-03 15:13 
GeneralRe: oledbCommand Pin
neda3-Aug-03 22:33
neda3-Aug-03 22:33 
GeneralRe: oledbCommand Pin
K4reem5-Aug-03 3:59
K4reem5-Aug-03 3:59 
GeneralUpdateCommand with Parameter Pin
Anonymous3-Aug-03 8:42
Anonymous3-Aug-03 8:42 
Please go easy on me -I am New.

I created a SqlCommand and create a text update query such as:

update part set weight = '1' where part_id = 'test part'

I then created a button on my form and applied the following code:

Private Sub Button_load_it_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button_load_it.Click


Me.SqlConnection1.Open()
Me.SqlCommand1.ExecuteNonQuery()
Me.SqlConnection1.Close()

End Sub

this works fine.

I now want to use a parameter for my weight input instead of the value '1' as in my query. The parameter will be supplied from a textbox on my form.

I cant seem to grasp the idea and nobody seems to be able to help me. I have read various books but none seem to describe the simple thing I am trying to accomplish.

Thanks , chris
GeneralRe: UpdateCommand with Parameter Pin
ChiYung3-Aug-03 9:13
ChiYung3-Aug-03 9:13 
GeneralRe: UpdateCommand with Parameter Pin
Arjan Einbu3-Aug-03 12:06
Arjan Einbu3-Aug-03 12:06 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 12:21
Anonymous3-Aug-03 12:21 
GeneralRe: UpdateCommand with Parameter Pin
Anonymous3-Aug-03 13:33
Anonymous3-Aug-03 13:33 
QuestionHow to create "inheritance" relationship in Ms Access? Pin
ChiYung3-Aug-03 8:34
ChiYung3-Aug-03 8:34 
AnswerRe: How to create "inheritance" relationship in Ms Access? Pin
Ray Cassick3-Aug-03 9:40
Ray Cassick3-Aug-03 9:40 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
ChiYung3-Aug-03 9:47
ChiYung3-Aug-03 9:47 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
Ray Cassick3-Aug-03 9:55
Ray Cassick3-Aug-03 9:55 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
ChiYung4-Aug-03 8:34
ChiYung4-Aug-03 8:34 
GeneralRe: How to create "inheritance" relationship in Ms Access? Pin
Ray Cassick4-Aug-03 18:01
Ray Cassick4-Aug-03 18:01 
GeneralDataBinding to a datagrid Pin
betengan3-Aug-03 6:05
betengan3-Aug-03 6:05 
GeneralRe: DataBinding to a datagrid Pin
dabuskol4-Aug-03 0:37
dabuskol4-Aug-03 0:37 
GeneralRe: DataBinding to a datagrid Pin
betengan4-Aug-03 5:35
betengan4-Aug-03 5:35 
Generalretrieved record Pin
dabuskol3-Aug-03 2:11
dabuskol3-Aug-03 2:11 
GeneralRe: retrieved record Pin
Rampas Tomas4-Aug-03 0:02
Rampas Tomas4-Aug-03 0:02 
GeneralRe: retrieved record Pin
dabuskol4-Aug-03 0:33
dabuskol4-Aug-03 0:33 
GeneralOLE DB Povider Dialog Pin
FAADI1-Aug-03 21:16
FAADI1-Aug-03 21:16 

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.