So I have posted my question to several forums and have had some good response but no resolution. I am quite new to Access 2010 and VBA. So here is my issue. I have built a Navigation Page with several forms(bound) so my users can enter data and saved to
a table. What I have is a room delay form to capture information for a medical procedure and to document when a delay occurs. My TABLE is tblDelay and my form is FormDelay.

On occasion my users will enter some information and save and close the form. Then will need to edit the record. I have attempted to create a Assession Num Search in the form header based on someone's recommendation using this code:
Private Sub cboAssessionSearch_AfterUpdate()
Const MESSAGETEXT = "This Assession Number already exists."
If Not IsNull(DLookup("AssessionNumber", "tblDelay", "AssessionNumber=" & Me.AssessionNumber)) Then
MsgBox MESSAGETEXT, vbExclamation, "Invalid Operation"
'code to filter form for the existing record
Me.Filter = "AssessionNumber=" & Me.AssessionNumber
Me.FilterOn = True
Else
'code to move to new record row
DoCmd.GoToRecord , , acNewRec
End If
End Sub
I can find the populated Assession Numbers in the combobox but I need to have certain criteria. If the assession number exists the populate the form with the record fields so an edit can be made and an update to the record made in the table. If the Assession
Number does not exist leave the form blank so a new record can be entered. Nothing happens when I select a Assession Number and hit enter. No error message indication record exists or not.
I have built several buttons (Add, Edit, Delate, Clear, and Close) in the header. If a assession Numbers need edited and updated then repopulate the form with the appropriate record found using the Assession Num Search combobox, If no record found, the enter
new information.
Table Field Names
dept, Rm_Num, MRN, AssessionNumber, CaseNumber (Not inclusive of all fields, If I can get these filed to populate I can get the rest)
Form Names
cboDept, cboRmNum, txtMRN, txtAssessionNumber, txtCaseNumber (Not inclusive of all boxes)
Bound Form to table
Any help finding resolution would be of GREAT HELP!!!
Thank you in advance,
Kerry