paulcraigdainty
Registered User.
- Local time
- Today, 20:02
- Joined
- Sep 25, 2004
- Messages
- 74
I have the following code below which works perfectly. I am trying to add a series of IF statements to the end of it. However, when i execute the code I get an error. Does anyone know why? I know the IF statement works as I can execute it behind a command button
Private Sub TicketRef_Click()
Dim rst As DAO.Recordset
DoCmd.OpenForm "frmFeedback"
Set rst = Forms!frmfeedback.Recordset.Clone
rst.FindFirst "[id] =" & Me.ID
Forms!frmfeedback.Bookmark = rst.Bookmark
Application.SetOption "Confirm action queries", 0
Application.SetOption "Confirm document deletions", 0
Application.SetOption "confirm record changes", 0
Form.Requery
Private Sub TicketRef_Click()
Dim rst As DAO.Recordset
DoCmd.OpenForm "frmFeedback"
Set rst = Forms!frmfeedback.Recordset.Clone
rst.FindFirst "[id] =" & Me.ID
Forms!frmfeedback.Bookmark = rst.Bookmark
Application.SetOption "Confirm action queries", 0
Application.SetOption "Confirm document deletions", 0
Application.SetOption "confirm record changes", 0
Form.Requery