|
-
Jan 20th, 2004, 09:56 AM
#1
Thread Starter
Hyperactive Member
Error 3420 "Object invalid or no longer set"
In Access, I have a form with a subdatasheet on it that's loaded from a local table.
I select a row in that sheet and click a button to fire-up a second form, everything's wonderful.
When I close the second form, returning to the original, and then try to access a record on the subdatasheet again, e.g.
Code:
CurrObjName = Me.Database_Compare_Results_Subform.Form.Recordset(1)
I get the above error.
Any ideas? I've tried requery and refresh and cloning the recordset ... no joy.
Thanks, DaveBo
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
-
Jan 20th, 2004, 02:31 PM
#2
Thread Starter
Hyperactive Member
A workaround
Well, my solution for now is:
since I can't get directly at the data in the subdatasheet,
I'm getting its .RecordSource .Filter and .OrderBy properties,
building an SQL query from that, and loading a temp recordset in code.
Then I just line up the current record with the selected row on screen using a rst.Move x.
Works!
"The wise man doesn't know all the answers, but he knows where to find them."
VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15
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
|