d_profesor
Registered User.
- Local time
- Today, 22:32
- Joined
- Jan 17, 2008
- Messages
- 43
i tried the following code to update a field in a table, table name is Perpindahan Aset.
Private Sub cmdUpdate_Click()
Dim rs As ADODB.Recordset
If Not IsNull(Me!txtIDAset) Then
Set rs = New ADODB.Recordset
rs.Open "SELECT*FROM [Perpindahan Aset] WHERE [ID Aset]=" & Me!txtIDAset, _
CurrentProject.Connection, adOpenDynamic, adLockOptimistic, adCmdText
If rs.EOF Then
rs![Lokasi Sekarang] = False
rs.Update
End If
rs.Close
Set rs = Nothing
End If
End Sub
Then i found error :no value given for one or more parameter, can you help me please...
Private Sub cmdUpdate_Click()
Dim rs As ADODB.Recordset
If Not IsNull(Me!txtIDAset) Then
Set rs = New ADODB.Recordset
rs.Open "SELECT*FROM [Perpindahan Aset] WHERE [ID Aset]=" & Me!txtIDAset, _
CurrentProject.Connection, adOpenDynamic, adLockOptimistic, adCmdText
If rs.EOF Then
rs![Lokasi Sekarang] = False
rs.Update
End If
rs.Close
Set rs = Nothing
End If
End Sub
Then i found error :no value given for one or more parameter, can you help me please...