|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Good Afternoon.
I get error "3251" (Object or provider is not capable of performing requested operation). I am able to update Access table when I read sequentially thru the file; sample code: strSql = "Abends" rstAbends.Open strSql, strConn1, adOpenKeyset, adLockOptimistic, adCmdTable intFlag = 0 Do Until rstAbends.EOF Or intFlag = 1 If rstAbends!JesNumber = txtJesNum.Text Then If (Len(txtTurnAround.Text) > 0) And rstAbends!turnaroundaction <> UCase(txtTurnAround.Text) Then rstAbends!turnaroundaction =UCase (txtTurnAround.Text) End If intFlag = 1 rstAbends.Update However, when I use the SQL statement to retrieve the record, (which is the correct way to do it since I know the key value!), I get the above mentioned error, which will not even allow me to perform an assignment statement to the field. strjesnumber does have a value. rstAbends.Open strSql, strConn1, adOpenKeyset, adLockOptimistic, adCmdTable Set rstAbends = olah_cndb.Execute("Select * from ABENDS WHERE jesnumber = '" & strjesnumber & "'") 'If Not IsNull(txtTurnAround.Text) Then If (Len(txtTurnAround.Text) > 0) And rstAbends!turnaroundaction <> UCase(txtTurnAround.Text) Then rstAbends!turnaroundaction = UCase(txtTurnAround.Text) End If rstAbends.Update Thanks in advance |
|
#2
|
||||
|
||||
|
wrong forum...
|
|
#3
|
||||
|
||||
|
I moved this thread to the VB forum, where it belongs.
- DrG
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Error Updating Access Database via VB Command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|