Re: Method or Data Member Not found

Tech-Archive recommends: Fix windows errors by optimizing your registry



I took out the blue comments and I'm still getting the same error. Any other
ideas? It's still stopping at the .locked comment.

"Stuart McCall" wrote:

"lsgKelly" <lsgKelly@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A2A55691-FE61-4627-AE1E-25B788C17684@xxxxxxxxxxxxxxxx
I have the following code attached to a button on my form:

Private Sub Command70_Click()
[color blue]
Me.gnotes.Locked = False
Me.gnotes = Now() & "--" & CurrentUser() & "--" & [Add] & vbCrLf &
"-----------------------------------------------------------------------------------------------------------------------------------------------"
& vbCrLf & Me.gnotes
Me.gnotes.Locked = True
Me.Add = Null
[/blue]

End Sub

I'm getting the error at the Me.gnotes.Locked = False line.

Any ideas on how I can get this to work?

Thanks,

Kelly

The problem is the line before that. [color blue] is not VBA syntax. Neither
is [/blue]. Either comment out both those lines or delete them.



.


Quantcast