S
Steve S
Can anybody tell me what is wong with this code? I keep getting the error
and the execution stops on the line with the arrow (->)
‘Runtime error #3251
Operation is not supported for this type of object
Dim xyz As String
xyz = [FBO To Payments subform1].Form![Pmt ID]
MsgBox ("xyz is " & xyz)
Dim dbPay As DAO.Database
Dim rcdPay As DAO.Recordset
Set dbPay = CurrentDb
Set rcdPay = dbPay.OpenRecordset("Payments")
'rcdPay.FindFirst "[Pmt ID] = [FBO To Payments subform1].Form![Pmt ID]"
-> rcdPay.FindFirst "[Pmt ID]=1588"
rcdPay.Edit
rcdPay![Amount] = Me![Original Amount]
rcdPay.Update
Thanks much
and the execution stops on the line with the arrow (->)
‘Runtime error #3251
Operation is not supported for this type of object
Dim xyz As String
xyz = [FBO To Payments subform1].Form![Pmt ID]
MsgBox ("xyz is " & xyz)
Dim dbPay As DAO.Database
Dim rcdPay As DAO.Recordset
Set dbPay = CurrentDb
Set rcdPay = dbPay.OpenRecordset("Payments")
'rcdPay.FindFirst "[Pmt ID] = [FBO To Payments subform1].Form![Pmt ID]"
-> rcdPay.FindFirst "[Pmt ID]=1588"
rcdPay.Edit
rcdPay![Amount] = Me![Original Amount]
rcdPay.Update
Thanks much