Hello,
I have the following code on my form "Customers Home". Anyone have an idea how I could do this without VBA? I'm entry level with access so nothing to overly complicated please.
Thank you in advance!!!
'This section will convert values to ALL CAPS
Private Sub Fname_LostFocus()
Me.Fname = UCase(Me.Fname)
End Sub
Private Sub Lname_LostFocus()
Me.Lname = UCase(Me.Lname)
End Sub
Private Sub Title_LostFocus()
Me.Title = UCase(Me.Title)
End Sub
Private Sub Email_LostFocus()
Me.Email = UCase(Me.Email)
End Sub
Private Sub Address1_LostFocus()
Me.Address1 = UCase(Me.Address1)
End Sub
Private Sub Address2_LostFocus()
Me.Address2 = UCase(Me.Address2)
End Sub
Private Sub City_LostFocus()
Me.City = UCase(Me.City)
End Sub
Private Sub Notes_LostFocus()
Me.Notes = UCase(Me.Notes)
End Sub
'End Section
' This section will make entries to the Updated and Updated By field when a field value is changed AND force ALL CAPS in specific fields.
Private Sub Fname_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Lname_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Title_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Email_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub WorkPhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub WorkExt_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub MobilePhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub FaxPhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub CompanyID_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub CustomerID_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Company_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Address1_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Address2_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub City_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub State_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Postal_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub CustomerType_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub CreditLine_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub JoinMailingList_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Billable_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub PreferedCustomer_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub OKToEmailDocuments_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Active_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Notes_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Attachments_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
' End Section
I have the following code on my form "Customers Home". Anyone have an idea how I could do this without VBA? I'm entry level with access so nothing to overly complicated please.
Thank you in advance!!!
'This section will convert values to ALL CAPS
Private Sub Fname_LostFocus()
Me.Fname = UCase(Me.Fname)
End Sub
Private Sub Lname_LostFocus()
Me.Lname = UCase(Me.Lname)
End Sub
Private Sub Title_LostFocus()
Me.Title = UCase(Me.Title)
End Sub
Private Sub Email_LostFocus()
Me.Email = UCase(Me.Email)
End Sub
Private Sub Address1_LostFocus()
Me.Address1 = UCase(Me.Address1)
End Sub
Private Sub Address2_LostFocus()
Me.Address2 = UCase(Me.Address2)
End Sub
Private Sub City_LostFocus()
Me.City = UCase(Me.City)
End Sub
Private Sub Notes_LostFocus()
Me.Notes = UCase(Me.Notes)
End Sub
'End Section
' This section will make entries to the Updated and Updated By field when a field value is changed AND force ALL CAPS in specific fields.
Private Sub Fname_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Lname_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Title_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Email_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub WorkPhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub WorkExt_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub MobilePhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub FaxPhone_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub CompanyID_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub CustomerID_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Company_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now()
End Sub
Private Sub Address1_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Address2_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub City_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub State_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Postal_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub CustomerType_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub CreditLine_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub JoinMailingList_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Billable_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub PreferedCustomer_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub OKToEmailDocuments_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Active_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Notes_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
End Sub
Private Sub Attachments_Dirty(Cancel As Integer)
Me.UpdatedBy.Value = Forms![Home]![cbo_User]
Me.LastUpdated.Value = Now
' End Section