I've seen similar issues posted, but when I copy the answer code, it doesn't seem to work, so I'm hoping for clarification. Here's my hierarchy:
Main Form: "Account Details"
Tab Control: "TabCtl171"
Page: "Billed"
Sub Form: "Transactions Subform"
So Transactions Subform displays a continuous form of sales transactions with status "Billed" for the account showing on the main form. Page 2 and 3 are also the Transactions Subform but page 2 only lists transactions in status "Shipped", and page 3 only lists transactions in status "Received".
I need to be able to click the transaction ID on the current record on the current tab (so a transaction on the "Billed" page) and have it open a new form called "Transaction Details" filtered to that record.
I tried just using the OpenForm macro, and it works fine if I go straight from the "Transactions Subform" (opened independently as its own form). However if I click the TransactionID on Transactions Subform as it appears on the Billed Tab as a subform, it doesn't pass the TransactionID value.
The code I have right now is:
Private Sub TransactionID_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Transaction Details"
DoCmd.OpenForm stDoc, , , stLinkCriteria
End Sub
Am I missing something? Help is very appreciated as I have a tight deadline.
Main Form: "Account Details"
Tab Control: "TabCtl171"
Page: "Billed"
Sub Form: "Transactions Subform"
So Transactions Subform displays a continuous form of sales transactions with status "Billed" for the account showing on the main form. Page 2 and 3 are also the Transactions Subform but page 2 only lists transactions in status "Shipped", and page 3 only lists transactions in status "Received".
I need to be able to click the transaction ID on the current record on the current tab (so a transaction on the "Billed" page) and have it open a new form called "Transaction Details" filtered to that record.
I tried just using the OpenForm macro, and it works fine if I go straight from the "Transactions Subform" (opened independently as its own form). However if I click the TransactionID on Transactions Subform as it appears on the Billed Tab as a subform, it doesn't pass the TransactionID value.
The code I have right now is:
Private Sub TransactionID_Click()
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Transaction Details"
DoCmd.OpenForm stDoc, , , stLinkCriteria
End Sub
Am I missing something? Help is very appreciated as I have a tight deadline.