S
ServiceEnvoy
I have a Customer Record Form called "FRM_FireytechCustomers"
I have a New Ticket Data Entry Form called "DataEntry-Fireytech"
I currently have the following code which is the onclick event of a
button called "FireytechTicket" which takes us to the Data Entry Form
and automatically carries the customer id number to the data entry
form. Here is the code for the button currently:
Private Sub FireytechTicket_Click()
On Error GoTo Err_FireytechTicket_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "DataEntry-Fireytech"
DoCmd.OpenForm stDocName, , , acFormAdd
Forms(stDocName)![CustomerID] = Me.[CustomerID]
Exit_FireytechTicket_Click:
Exit Sub
Err_FireytechTicket_Click:
MsgBox Err.Description
Resume Exit_FireytechTicket_Click
End Sub
I have an after update on the data entry form for the field customerid
so that when we enter the customer id it auto fills all the customer
data on the data entry form so it is displayed in our ticketing system
for quick visual reference without having to look up the customer id
number. Here is the code for the after update:
Private Sub CustomerID_AfterUpdate()
Me.CustomerID.Requery
Me.NameLast = Me.CustomerID.Column(1)
Me.NameFirst = Me.CustomerID.Column(2)
Me.CompanyName = Me.CustomerID.Column(3)
Me.PhoneWork = Me.CustomerID.Column(4)
Me.PhoneWorkExt = Me.CustomerID.Column(5)
Me.PhoneHome = Me.CustomerID.Column(6)
Me.PhoneMobile = Me.CustomerID.Column(7)
Me.Address = Me.CustomerID.Column(8)
Me.Address2 = Me.CustomerID.Column(9)
Me.AddressCity = Me.CustomerID.Column(10)
Me.AddressState = Me.CustomerID.Column(11)
Me.AddressZip = Me.CustomerID.Column(12)
Me.Email = Me.CustomerID.Column(13)
Me.PaymentTerms = Me.CustomerID.Column(14)
End Sub
I would like to have all of the after update data listed above
automatically entered when we click the fireytech tickets button. It
currently only brings the customer id with it to the new form but I
would like all of these other fields to carry to the new form to
eliminate one more data entry step/click. How would I do that?
I have a New Ticket Data Entry Form called "DataEntry-Fireytech"
I currently have the following code which is the onclick event of a
button called "FireytechTicket" which takes us to the Data Entry Form
and automatically carries the customer id number to the data entry
form. Here is the code for the button currently:
Private Sub FireytechTicket_Click()
On Error GoTo Err_FireytechTicket_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "DataEntry-Fireytech"
DoCmd.OpenForm stDocName, , , acFormAdd
Forms(stDocName)![CustomerID] = Me.[CustomerID]
Exit_FireytechTicket_Click:
Exit Sub
Err_FireytechTicket_Click:
MsgBox Err.Description
Resume Exit_FireytechTicket_Click
End Sub
I have an after update on the data entry form for the field customerid
so that when we enter the customer id it auto fills all the customer
data on the data entry form so it is displayed in our ticketing system
for quick visual reference without having to look up the customer id
number. Here is the code for the after update:
Private Sub CustomerID_AfterUpdate()
Me.CustomerID.Requery
Me.NameLast = Me.CustomerID.Column(1)
Me.NameFirst = Me.CustomerID.Column(2)
Me.CompanyName = Me.CustomerID.Column(3)
Me.PhoneWork = Me.CustomerID.Column(4)
Me.PhoneWorkExt = Me.CustomerID.Column(5)
Me.PhoneHome = Me.CustomerID.Column(6)
Me.PhoneMobile = Me.CustomerID.Column(7)
Me.Address = Me.CustomerID.Column(8)
Me.Address2 = Me.CustomerID.Column(9)
Me.AddressCity = Me.CustomerID.Column(10)
Me.AddressState = Me.CustomerID.Column(11)
Me.AddressZip = Me.CustomerID.Column(12)
Me.Email = Me.CustomerID.Column(13)
Me.PaymentTerms = Me.CustomerID.Column(14)
End Sub
I would like to have all of the after update data listed above
automatically entered when we click the fireytech tickets button. It
currently only brings the customer id with it to the new form but I
would like all of these other fields to carry to the new form to
eliminate one more data entry step/click. How would I do that?