Method or data member not found

  • Thread starter ragtopcaddy via AccessMonster.com
  • 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?
 
R

ragtopcaddy 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
 
Top