Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 3251 Operation not supported by this type of object.

Status
Not open for further replies.

Tomadams

Programmer
Jun 26, 2001
141
US
I'm lost to see what my problem is. can some fresh eyes take a look and see what I've done.
this won't open with the above error. I wrote this a couple of weeks ago. It was fine then.
I have to deliver it tomorrow and it goes bizarre.


Private Sub Splits_AfterUpdate()

Dim RecSet As New ADODB.Recordset
Dim sSQL As String
Dim SpNum As Integer

RecSet.Open "SplitWO", CurrentDb.Connection, adOpenKeyset, adLockOptimistic
For SpNum = 1 To Me.Splits
RecSet.AddNew
RecSet![ProcessNum] = Me.WorkOrder & "-" & SpNum
RecSet![SplitNum] = SpNum
RecSet![WorkOrder] = Me.WorkOrder
RecSet![WorkOrderID] = Me.txtwoID.Value
RecSet![DueDate] = Me.[Due DATE]
RecSet![ProjectName] = Me.[Project Name]
RecSet![Company] = Me.cboCompany.Value
RecSet![CSRName] = Me.txtLogOnName.Value
RecSet.Update
Next SpNum

RecSet.Close



Thanks
 
Hi,

On what statement do you get this error?

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
hey skip
recset.open is the highlighted code
tom
 
Put a BREAK on this statement.

Hen use this tool to discover what’s happening with CurrentDB.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
I put a break on the statement but I don't understand what you mean by use the tool to see what's going on in the connection. Can you explain?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top