Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with textbox and datafield property.
Message
From
18/04/2002 18:03:24
 
 
To
18/04/2002 17:49:21
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00646643
Message ID:
00646657
Views:
15
This is the code, the recordset name is productdetail an the lock value is 3-optimistic (isn't readonly).

Private Sub CmdOK_Click()
DE.rsProductDetail.Update
'DE.rsProductDetail.Resync
Unload Me
End Sub

Private Sub Form_Load()
Dim var1 As String
Call fSize

nOpt = frmXproduct.Opt 'Get Option
nRec2 = frmXproduct.cRec2 'Get a product code
nRec = frmXproduct.cRec 'Get to detail to modify

Select Case nOpt
Case 1 'add new record
DE.rsProductDetail.AddNew
DE.rsProductDetail(0) = Null
DE.rsProductDetail(1) = nRec2
Case 2 'modify the nRec record
cParam = "ProductDetailID = " + CStr(nRec)
DE.rsProductDetail.MoveFirst
DE.rsProductDetail.Find cParam
End Select
End Sub

Private Sub Form_Unload(Cancel As Integer)
frmXproduct.ReloadList (1) 'reload the listview in other form
End Sub
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform