I just knew this topic was of interest. I have been working on finding whole words in a string using regex.
As for Event Procedures, is there a limited list of events that could be checked to identify event, if not one of those then standard? I guess that's what you're asking. I think the list should not exceed 100 or so ---just a guess.
UPDATE: 15:30
Here's a partial list from some previous work.
EventName , EventDesc, EventType
1,"Open"," When the report opens but before printing","Report "
2,"Close"," When the report closes and is removed from the screen","Report "
3,"Active"," When the report receives the focus and becomes the active window","Report "
4,"Deactivate"," When a different window becomes active","Report "
5,"NoData"," When no data is passed to the report as it opens","Report "
6,"Page"," When the report changes pages","Report "
7,"Error"," When a runtime error is produced in Access","Report "
8,"Format"," When the section is pre-formatted in memory before being sent to the printe You can apply special formatting","ReportSection "
9,"Print"," As the section is sent to the printe No more formatting allowed.","ReportSection "
10,"Retreat"," After the Format event but before the Print event.","ReportSection "
11,"Open"," When a form is opened, but the first record is not displayed yet","Form "
12,"Load"," When a form is loaded into memory but not yet opened","Form "
13,"Resize"," When the size of a form changes","Form "
14,"Unload"," When a form is closed and the records unload, and before the form is removed from the screen","Form "
15,"Close"," When a form is closed and removed from the screen","Form "
16,"Activate"," When an open form receives the focus, becoming the active window","Form "
17,"Deactivate"," When a different window becomes the active window, but before it loses focus","Form "
18,"GotFocus"," When a form with no active or enabled controls receives the focus","Form "
19,"LostFocus"," When a form loses the focus","Form "
20,"Timer"," When a specified time interval passes. The interval (in milliseconds) is specified by the TimerInterval property.","Form "
21,"Click"," When the user presses and releases (clicks) the left mouse button","mouse "
22,"DblClick"," When the user presses and releases (clicks) the left mouse button twice on a form","mouse "
23,"MouseDown"," When the user presses the mouse button while the pointer is on a form","mouse "
24,"MouseMove"," When the user moves the mouse pointer over an area of a form","mouse "
25,"MouseUp"," When the user releases a pressed mouse button while the pointer is on a form","mouse "
26,"MouseWheel"," When the user spins the mouse wheel","mouse "
27,"KeyDown"," When the user presses any key on the keyboard when a form has focus or when the user uses a SendKeys macro action","mouse "
28,"KeyUp"," When the user releases a pressed key or immediately after the user uses a SendKeys macro action","mouse "
29,"KeyPress"," When the user presses and releases a key on a form that has the focus or when the user uses a SendKeys macro","mouse "
30,"Current"," When you move to a different record and make it the current record","Data "
31,"BeforeInsert"," After data is first entered into a new record, but before the record is actually created","Data "
32,"AfterInsert"," After the new record is added to the table","Data "
33,"BeforeUpdate"," Before changed data is updated in a record","Data "
34,"AfterUpdate"," After changed data is updated in a record","Data "
35,"Dirty"," When a record is modified","Data "
36,"Undo"," When a user has returned a form to clean state (has been set back to an unmodified state); the opposite of OnDirty","Data "
37,"Delete"," When a record is deleted, but before the deletion takes place","Data "
38,"BeforeDelConfirm"," Just before Access displays the Delete Confirm dialog box","Data "
39,"AfterDelConfirm"," After the Delete Confirm dialog box closes and confirmation has happened","Data "
40,"Error"," When a runtime error is produced","Data "
41,"Filter"," When a filter has been specified, but before it is applied","Data "
42,"ApplyFilter"," After a filter is applied to a form","Data "
43,"BeforeUpdate"," Before changed data in the control is updated to the underlying recordset","Control "
44,"AfterUpdate"," After changed data is transferred to the form's recordset","Control "
45,"Dirty"," When the contents of a control change","Control "
46,"Undo"," When the form is returned to a clean state","Control "
47,"Change"," When the contents of a text box change or a combo box's text changes
Updated When an A","Control "
48,"Updated"," When an ActiveX object's data has been modified","Control "
49,"NotInList"," When a value that isn't in the list is entered into a combo box","Control "
50,"Enter"," Before a control receives the focus from another control","Control "
51,"Exit"," Just before the control loses focus to another control","Control "
52,"GotFocus"," When a nonactive or enabled control receives the focus","Control "
53,"LostFocus"," When a control loses the focus","Control "
54,"Click"," When the left mouse button is pressed and released (clicked) on a control","Control "
55,"DblClick"," When the left mouse button is pressed and released (clicked) twice on a control or label","Control "
56,"MouseDown"," When a mouse button is pressed while the pointer is on a control","Control "
57,"MouseMove"," When the mouse pointer is moved over a control","Control "
58,"MouseUp"," When a pressed mouse button is released while the pointer is on a control","Control "
59,"KeyDown"," When any key on the keyboard is pressed when a control has the focus or when a SendKeys macro action is used","Control "