W
Windstorm
Ok,
Please be patient with me, I'm about to confuse everyone, including myself.
I have agreed to help a friend with their database issues. I know enough to
get myself in trouble. It was designed in with Access 95 and converted to
Access 2000 for them by a consultant no longer around.
On the main form, there is a "Browse" button which will open up
"dcdocbrowse". It is simply a combobox that once a record is clicked, will
close and will display that record on the main form. This being said, when
you choose a record, it simply displays "Object invalid or no longer set". I
have tried various things and I am stumped. Any help would be greatly
appreciated.
Private Sub Combo2_Click()
DoCmd.SelectObject acForm, "DCDoc"
Forms.dcdoc.RecordsetClone.FindFirst "[DocKeyID]=" & Me!Combo2
'DoCmd.FindRecord Me!Combo2, , True, , acCurrent
DoCmd.GoToRecord , , acGoTo, Forms.dcdoc.RecordsetClone.AbsolutePosition
+ 1
DoCmd.Close acForm, "dcdocbrowse"
End Sub
Thanks!!!
Please be patient with me, I'm about to confuse everyone, including myself.
I have agreed to help a friend with their database issues. I know enough to
get myself in trouble. It was designed in with Access 95 and converted to
Access 2000 for them by a consultant no longer around.
On the main form, there is a "Browse" button which will open up
"dcdocbrowse". It is simply a combobox that once a record is clicked, will
close and will display that record on the main form. This being said, when
you choose a record, it simply displays "Object invalid or no longer set". I
have tried various things and I am stumped. Any help would be greatly
appreciated.
Private Sub Combo2_Click()
DoCmd.SelectObject acForm, "DCDoc"
Forms.dcdoc.RecordsetClone.FindFirst "[DocKeyID]=" & Me!Combo2
'DoCmd.FindRecord Me!Combo2, , True, , acCurrent
DoCmd.GoToRecord , , acGoTo, Forms.dcdoc.RecordsetClone.AbsolutePosition
+ 1
DoCmd.Close acForm, "dcdocbrowse"
End Sub
Thanks!!!