I am trying to open a form to display only a record with a matching intRolodex_ID.
This is my coding and it is not working. When I run the code, it does not recognize Temp. I know it is something easy but I surrender
Private Sub Command150_Click()
On Error GoTo Err_Command150_Click
Dim stDocName As String
Dim Temp As Integer
Temp = intRolodex_ID
stDocName = "frmNewPropOwnr"
DoCmd.OpenForm stDocName, acNormal, , "intRolodex_ID = Temp", acFormEdit
Exit_Command150_Click:
Exit Sub
Err_Command150_Click:
MsgBox Err.Description
Resume Exit_Command150_Click
End Sub
This is my coding and it is not working. When I run the code, it does not recognize Temp. I know it is something easy but I surrender
Private Sub Command150_Click()
On Error GoTo Err_Command150_Click
Dim stDocName As String
Dim Temp As Integer
Temp = intRolodex_ID
stDocName = "frmNewPropOwnr"
DoCmd.OpenForm stDocName, acNormal, , "intRolodex_ID = Temp", acFormEdit
Exit_Command150_Click:
Exit Sub
Err_Command150_Click:
MsgBox Err.Description
Resume Exit_Command150_Click
End Sub