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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Time Error 3201: No Current Record

Status
Not open for further replies.

Jedi420

Programmer
Jun 21, 2002
184
US
I have a form and a subform that displays (its a continuous form) all the updates for the particular record displayed in the main form. Theres an option to delete records in the subform. Sometimes, when I go to delete a record from the subform (through a button), I get run-time error 3201, which say no current record.
The thing is, I can see the currenct record! I even have record selectors turn on in the subform so I can see exactly what record is selected (has a black error to the left of the record). Whenever I actually select the record with the cursor though, I get no error.
So do record selectors not actually point out the "current record" on a form, and if not, is there a way in VB that I can find out which record has the black record selector arrow next to it and make that record the current record? Sorry if it seems confusing. Thnx.

-Jedi420
 
Even if I do a
Code:
"DoCmd.GoToRecord , , acGoTo, Form.CurrentRecord"

and then try to delete that record (which DOES exist), it still gives me a No Current Record error ... :-(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top