sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Kenny G's Avatar

Compile error: Method or Data Member Not Found


Question posted by: Kenny G (Guest) on November 12th, 2005 07:40 PM
Hello,

Got a small problem:

I built a small table and used the following on my laptop this
morning.
This code compiled and worked fine on my laptop but when I compiled
the first Sub on my desktop I get compile error: Method or Data
Member Not Found
The words ProjectCode was highlighted.

Next I replaced the period with a bang just before the words
ProjectCode and it compiled just fine. When I depress the F8 key to
copy the previous record I get Runtime error 2465 Microsoft Access
can't find the field ProjectCode.

I sure would appreciate your help.

Kenny G

1...
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF8 And Me.NewRecord Then
CopyFromLast
Me.ProjectCode.SetFocus
End If
End Sub

2...
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF8 And Me.NewRecord Then
CopyFromLast
Me!ProjectCode.SetFocus
End If
End Sub
0 Answers Posted
 
Not the answer you were looking for? Post your question . . .
196,917 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,917 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors