hey people!
im currently havin a problem with VBA. i have a form from where the user can Add or Amend Customers. I have the following code to the Add button:
Private Sub AddNewCustomer_Click()
On Error GoTo Err_AddNewCustomer_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Close
stDocName = "Customer Details"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_AddNewCustomer_Click:
Exit Sub
Err_AddNewCustomer_Click:
MsgBox Err.Description
Resume Exit_AddNewCustomer_Click
End Sub
Howeve, i want the form to be in 'ADD MODE' when i click this button. how would i go about doing this? or is there an easier way?
Thanx Guys!
SaTTy
im currently havin a problem with VBA. i have a form from where the user can Add or Amend Customers. I have the following code to the Add button:
Private Sub AddNewCustomer_Click()
On Error GoTo Err_AddNewCustomer_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Close
stDocName = "Customer Details"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_AddNewCustomer_Click:
Exit Sub
Err_AddNewCustomer_Click:
MsgBox Err.Description
Resume Exit_AddNewCustomer_Click
End Sub
Howeve, i want the form to be in 'ADD MODE' when i click this button. how would i go about doing this? or is there an easier way?
Thanx Guys!
SaTTy