|
-
Nov 21st, 2004, 08:44 AM
#1
Thread Starter
New Member
VB6 and MS access
Hallo,
I have a little problem to update an access data base.
Writing new records into the db is no problem.
The code for my update button is the following
Private Sub cmdUpdate_Click()
If txtBonnr.Text <> vbNullString And txtBonnr.Text <> "" Then
MsgBox "Updaten"
openDB
Set RECSET = CreateObject("ADODB.Recordset")
RECSET.Open "UPDATE eetfestijn SET Subtotaal = '& txtAantal.Text &' WHERE Bonnr=" & CDbl(txtBonnr.Text), DBCON
DBCON.Close
End If
End Sub
If i execute the button i receive a runtime error 80040e07
microsoft odbc microsoft access driver
data type mismatch in criteria expression
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|