I've created a database which runs well under Access 2000. Now when running the same database under Access XP it crashes when I go to perform a particular action; "It crashes when I go to click a button on a form", heres the code for that button:
Any reason why this works in Access 2000 and not Access XP (or 03)? as I cannot see anything in the above code that would do this??
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Shann
Code:
Private Sub Transfer_Click()
On Error Resume Next
Dim dbs As Database
Dim rstPlayers As Recordset
Set dbs = CurrentDb
Set rstPlayers = dbs.OpenRecordset("Players", dbOpenDynaset)
With rstPlayers
.AddNew
![Tournament ID] = Forms![Main Menu]![Tournament ID]
!Gender = PlayerSex
!Name = PlayerName
!Code = PlayerCode
!Points = PlayerPoints
![Age Group] = AgeGroup
!Grade = PlayerGradeM & PlayerGradeF
.Update
.Bookmark = .LastModified
End With
rstPlayers.Close
dbs.Close
Forms![Add Tournament Players]![Tournament Players].Form.Requery
Forms![Add Tournament Players]![Tournament Players].SetFocus
DoCmd.GoToRecord , , acLast
End Sub
Any reason why this works in Access 2000 and not Access XP (or 03)? as I cannot see anything in the above code that would do this??
![[yinyang] [yinyang] [yinyang]](/data/assets/smilies/yinyang.gif)
Shann