I have two forms in my database. One for equipment and one for the network information.
I want to open the frmIP from the frmEquip and be on the coresponding record by matching the NIC Mac address field.
Currently, I can do it but it is done by a filter...I don't want a filter...I just want to open to that record but be able to access the rest of the table without turning off the filter.
Here is my code:
How can I open the form and goto the record with the matching NIC_MAC (without a filter)?
Thanks for the assistance, Jeff.
I want to open the frmIP from the frmEquip and be on the coresponding record by matching the NIC Mac address field.
Currently, I can do it but it is done by a filter...I don't want a filter...I just want to open to that record but be able to access the rest of the table without turning off the filter.
Here is my code:
Code:
Private Sub cmdOpenIPForm_Click()
On Error GoTo Err_cmdOpenIPForm_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmIP"
stLinkCriteria = "[NIC_MAC]=" & "'" & Me![NIC_MAC] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenIPForm_Click:
Exit Sub
How can I open the form and goto the record with the matching NIC_MAC (without a filter)?
Thanks for the assistance, Jeff.