Hello
I am using Access 2003 for a patient falls database. I have a form that is being used to add each fall incident to a table. I have a combo box that I want the user to be able to select an account number (which is a unique identifier) and have the form go to that record.
So the source type is table/query of tblFalls and the after update code is:
Why is this not working?
Also, some patients could have multiple hospital visits with falls so I'd like to have another combo box that you could select the chart number and then in the find record combo box would only show the account numbers associated with the chart number selected in the first combo box.
However, I'd like users to be able to use either method i.e. chart first and then select from applicable account numbers or just select account number. Thanks.
I am using Access 2003 for a patient falls database. I have a form that is being used to add each fall incident to a table. I have a combo box that I want the user to be able to select an account number (which is a unique identifier) and have the form go to that record.
So the source type is table/query of tblFalls and the after update code is:
Code:
Private Sub cmbFind_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst [AcctNo] = "'" & Me![cmbFind]
Me.Bookmark = Me.RecordsetClone.Bookmark
[ChartNo].SetFocus
Why is this not working?
Also, some patients could have multiple hospital visits with falls so I'd like to have another combo box that you could select the chart number and then in the find record combo box would only show the account numbers associated with the chart number selected in the first combo box.
However, I'd like users to be able to use either method i.e. chart first and then select from applicable account numbers or just select account number. Thanks.