Function AddNew(ByVal strFileDSN As String, ByVal strFirstName As String, ByVal strLastName As String, ByVal strMiddleName As String, ByVal strKnownAs As String, _
ByVal strGender As String, ByVal strAddress1 As String, ByVal strAddress2 As String, ByVal strCity As String, ByVal strState As String, ByVal strPostCode As String, _
ByVal strCountry As String, ByVal strHomePhone As String, ByVal strBusinessPhone As String, ByVal strFax As String, ByVal strEmail As String, _
ByVal strWebSite As String, ByVal strMeal As String, ByVal strSeating As String, _
ByVal strExitRow As String, ByVal lngMileage As Long)
Dim objContext As ObjectContext
Set objContext = GetObjectContext
On Error GoTo ErrorHandler
Dim strSQL As String
Dim lngAccountID As Long
Dim cnn As New ADODB.Connection
Dim arrReturn(2)
Dim strPassword As String
arrReturn(0) = 0
strPassword = InventPassword()
'TakeANumber generates a unique account number and insures that no one will
'concurrently choose the same number
' This method is in another class, so have to "objContext.CreateInstance"
' Note that should not CreateObject in this circumstance, because if
' CreateObject, will get a NEW transaction that cannot see the work
' done in this (calling) transaction
Dim TakeANum As Object
Set TakeANum = objContext.CreateInstance("MTS_TakeANumber.TakeANumber")
Function Update(ByVal strFileDSN As String, ByVal lngAccountID As Long, ByVal strFirstName As String, ByVal strLastName As String, ByVal strMiddleName As String, ByVal strKnownAs As String, _
ByVal strGender As String, ByVal strAddress1 As String, ByVal strAddress2 As String, ByVal strCity As String, ByVal strState As String, ByVal strPostCode As String, _
ByVal strCountry As String, ByVal strHomePhone As String, ByVal strBusinessPhone As String, ByVal strFax As String, ByVal strEmail As String, _
ByVal strWebSite As String, ByVal strMeal As String, ByVal strSeating As String, _