G
Guest
Hi All,
I have a form that will prompt the user to select "OK" to retrieve records.
I would like to filter the records that are retrieved so that the associated
records show up. When the user is in bank ID #103 and clicks on OK, the new
form that pops up should only have data pertaining to bank ID #103. It
currently has records for all banks.
TIA,
Cheryl
Private Sub cmdOpenTransactions_Click()
On Error GoTo Err_cmdOpenTransactions_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Transactions"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenTransactions_Click:
Exit Sub
Err_cmdOpenTransactions_Click:
MsgBox Err.Description
Resume Exit_cmdOpenTransactions_Click
End Sub
I have a form that will prompt the user to select "OK" to retrieve records.
I would like to filter the records that are retrieved so that the associated
records show up. When the user is in bank ID #103 and clicks on OK, the new
form that pops up should only have data pertaining to bank ID #103. It
currently has records for all banks.
TIA,
Cheryl
Private Sub cmdOpenTransactions_Click()
On Error GoTo Err_cmdOpenTransactions_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Transactions"
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdOpenTransactions_Click:
Exit Sub
Err_cmdOpenTransactions_Click:
MsgBox Err.Description
Resume Exit_cmdOpenTransactions_Click
End Sub