Connecting Tech Pros Worldwide Help | Site Map

Compile error: Method or Data Member Not Found

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 06:40 PM
Kenny G
Guest
 
Posts: n/a
Default Compile error: Method or Data Member Not Found

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,662 network members.