Hi,
I have been trying to create a popup window that show information of two different form. Both form have the same primary key.
I tried using the same code in Northwind (In "Suppliers" Form) but with not much success. the code that I copied was:
Private Sub ReviewProducts_Click()
Dim strMsg As String, strTitle As String
Dim intStyle As Integer
Dim strDocName As String, strLinkCriteria As String
strDocName = "Product List"
strLinkCriteria = "[SupplierID] = Forms![Suppliers]![SupplierID]"
DoCmd.OpenForm strDocName, , , strLinkCriteria
End Sub
All I edited was the strLinkCriteria. The popup worked but it just show a blank form with no information in it.
Please help!! Did I use the wrong code?
I have been trying to create a popup window that show information of two different form. Both form have the same primary key.
I tried using the same code in Northwind (In "Suppliers" Form) but with not much success. the code that I copied was:
Private Sub ReviewProducts_Click()
Dim strMsg As String, strTitle As String
Dim intStyle As Integer
Dim strDocName As String, strLinkCriteria As String
strDocName = "Product List"
strLinkCriteria = "[SupplierID] = Forms![Suppliers]![SupplierID]"
DoCmd.OpenForm strDocName, , , strLinkCriteria
End Sub
All I edited was the strLinkCriteria. The popup worked but it just show a blank form with no information in it.
Please help!! Did I use the wrong code?