If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > help me!!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-04, 02:47
azifa7980 azifa7980 is offline
Registered User
 
Join Date: Aug 2004
Posts: 15
help me!!

i a using vb. i want to do a system as i attach to you the sample screens. when we click send button, all data are insert into the board history where user can't edit it. i don't know how to do it.
Attached Files
File Type: doc screen.doc (44.5 KB, 75 views)
Reply With Quote
  #2 (permalink)  
Old 08-12-04, 09:34
Daniel_Johns Daniel_Johns is offline
Registered User
 
Join Date: Jul 2004
Posts: 69
considering your done declaring all necessary variables (connection, recordsets...etc.) after updating (which you would assign all the inputs to a table) ex. serial no is into rs!serial_no...then assign the datagrid's recordset to the active recordset in which you save your data. in this example, rs. Set the datagrid into "not" updatable for the user can't mess up your data. (i'll try to give a very simple example so even the noobs can understand.)

Private Sub cmdSend_Click()
rs.Addnew
rs!serial_no = txtserialno.text
rs!defect_mode = cmbdefect_mode.text
rs!location = txtlocation.text
rs!pin_no = txtpin_no.text
rs!rework = cmbrework.text
rs!icpn = txticpn.text
rs!nlc = txtnlc.text
rs.Update

Set Datagrid1.Datasource = rs

End Sub

Hope you understand what i'm trying to tell....
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On