I do not understand why they opted to place code in the before update event for the combo. I would have probably opted for the AfterUpdate event handler. In fact, this alone, may be why the user does not like the map thing. Anyway, in a copy of your DB, make some edits. Comment out all of the code within the Before Update event of the combo.
Highlight the code
After
Private Sub Combo28_BeforeUpdate(Cancel As Integer)
and before
End Sub
Be sure to get the correct End Sub line, there are several. You want the End Sub for the Combo and directly below "Set HTML = Nothing"
This is the code you want to highlight and then comment out.
Code:
Dim strFrom As String
Dim strTo As String
Dim strOutput As String
Dim wb As Object
If IsNull(Me.Employee_Number) = False Then
Me.txtPost1 = DLookup("[Post Code]", "Del_PostCode", "[Employee Number] = " & Forms![Course Booking]![Employee Number])
End If
If IsNull(Forms![Course Booking]!Venue) = False Then
Forms![Course Booking]!txtPost = DLookup("[Post Code]", "Stores", "[Cost Centre] = " & Forms![Course Booking]!Venue)
End If
If IsNull(Forms![Course Booking]!txtPost) = False Then
strTo = "+to+" & Forms![Course Booking]!txtPost
End If
strTo = Replace(strTo, " ", "+")
If IsNull(Forms![Course Booking]!txtPost1) = False Then
strFrom = Forms![Course Booking]!txtPost1
End If
strFrom = Replace(strFrom, " ", "+")
Dim HTML As Object
Dim strWeb As String
strWeb = cGooMapsQry & strFrom & strTo & "&tab=wl&output=classic&dg=brw&z=10"
Debug.Print strWeb
Set HTML = Me.wbGoogleMaps.Object
HTML.Silent = True
HTML.Navigate strWeb
Set HTML = Nothing