TheFerrisFile
Registered User.
- Local time
- Today, 00:47
- Joined
- Jul 7, 2006
- Messages
- 16
I am trying to set up my form so that when a button is pressed it changes the value of a hidden combo box to another value.
Here is my code so far:
On the button Click event procedure:
Private Sub bttn_date_Click()
Me![ONCLog_DateOut] = Date
Me![Status_ID].SetFocus
End Sub
On the GotFocus event procedure:
Private Sub Status_ID_GotFocus()
Me![Status_ID] = "2"
End Sub
When I press the button it returns a Run-time error 2110 "Can't move the focus to Status_ID"
I have tried rewriting the code several different ways as I am working in Access 2007 and have found that some of my old tricks don't work in '07.
Thanks in advance.
Here is my code so far:
On the button Click event procedure:
Private Sub bttn_date_Click()
Me![ONCLog_DateOut] = Date
Me![Status_ID].SetFocus
End Sub
On the GotFocus event procedure:
Private Sub Status_ID_GotFocus()
Me![Status_ID] = "2"
End Sub
When I press the button it returns a Run-time error 2110 "Can't move the focus to Status_ID"
I have tried rewriting the code several different ways as I am working in Access 2007 and have found that some of my old tricks don't work in '07.
Thanks in advance.