I have a form that I enter data in. I click on a button from the menu to open the form. I copied the button and then changed the name of the new for. Here is the code that I have that I copied:
Private Sub Direct_Pay_Claim_Click()
On Error GoTo Err_Direct_Pay_Claim_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocNam = "PO Information"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_Direct_Pay_Claim_Click:
Exit Sub
Err_Direct_Pay_Claim_Click:
MsgBox Err.Description
Resume Exit_Direct_Pay_Claim_Click
End Sub
The copied code is the same, except I changed Direct_Pay_Claim to Energy_Cap
I deleted the fields that I didn't want and saved it. I open the Direct Pay Claim and the form has changed to what I changed in Energy Cap. Why??? I'm thinking it has to do with the stLinkCriteria, but not sure. They use the same table information, but why would the forms be the same if the code names were change?