N
NH Hiker
I have an Access 2007 database that works fine on my Vista pc. When I copy
the database to an XP machine with Access 2007, the database opens fine. All
the access forms, table, etc work, macros work, but it appears that the VB
code doesn't execute. I don't get any error messages!!
eg. This code works fine on my machine, but doesn't execute on the other
machine. Again no error messages!
Private Sub txtHomePhone_GotFocus()
'sets the cursor to the beginning of the local exchange - after the area code
If Len(txtHomePhone) Then
Me.txtHomePhone.SelStart = Len(Me.txtHomePhone)
Else: Me.txtHomePhone.SelStart = 1
End If
End Sub
This is probably a newbie issue. Can anyone point me in the right direction?
the database to an XP machine with Access 2007, the database opens fine. All
the access forms, table, etc work, macros work, but it appears that the VB
code doesn't execute. I don't get any error messages!!
eg. This code works fine on my machine, but doesn't execute on the other
machine. Again no error messages!
Private Sub txtHomePhone_GotFocus()
'sets the cursor to the beginning of the local exchange - after the area code
If Len(txtHomePhone) Then
Me.txtHomePhone.SelStart = Len(Me.txtHomePhone)
Else: Me.txtHomePhone.SelStart = 1
End If
End Sub
This is probably a newbie issue. Can anyone point me in the right direction?