Selstart interferes with compiling VB

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I'm using Selstart and it works well for my forms, but when I try to make an
mde file, it won't happen. When I try to compile my code, the debugger stops
@ .Selstart and gives this error msg: "data or member not found"
Here's my code.

Private Sub DesignationNo_Click()
Me.DesignationNo.SelStart = 0
Me.DesignationNo.SelLength = 5
End Sub

I have VB for applications referenced.
Any ideas why this won't work.
Thank you,
Karl H
 
After changing the Me.DesigationNo... to
Froms.MyForm.DesignationNo... it compiled without trouble.

KH
 
Back
Top