Method or data member not found

  • Thread starter Thread starter ragtopcaddy via AccessMonster.com
  • Start date Start date
R

ragtopcaddy via AccessMonster.com

Here's a puzzle for you:

The following line results in a compile error noted in the subject of this
post.

If Me.sctrid = 4 Then SetRsHRS Me.grpPeak, Me.DoV

when I change the format of the If statement as follows:

If Me.sctrid = 4 Then
SetRsHRS Me.grpPeak, Me.DoV
End If

It compiles just fine.

Any ideas?

--
Bill Reed

"If you can't laugh at yourself, laugh at somebody else"

Message posted via AccessMonster.com
 
In addition:

The subform this code is running in used to be a mainform. I've changed the
name and kept the code. It looks as though "Me" is still trying to refer to
the old name of the form and consequently, not finding controls and fields on
the newly renamed subform.

Thanks,

Bill R

--
Bill Reed

"If you can't laugh at yourself, laugh at somebody else"

Message posted via AccessMonster.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top