Z
zonk2439
I have a form (Form1) in datasheet view that is made from Table1, and has a
field (which is the primary key in the table and is an autonumber) named
"ISSUEID". This shows all the records of Table1.
I have also created Form2 which shows a single record from table1( This also
has the field "ISSUEID".
What I would like is when I double click on the "ISSUEID" on the datasheet
(form1) it will open up form2 and show that record.
Below is the code I have on double click for ISSUEID on the datasheet
(form1) it will open form2 but does not filter it to the proper ISSUEID.
Dim VarIssueID As Object
Dim stLinkCriteria As String
Dim stDocname As String
stDocname = "Issues"
Set VarIssueID = [IssueID]
stLinkCriteria = "[Issues].[IssueID]" = "VarIssueID"
DoCmd.OpenForm stDocname, , , stLinkCriteria
End Sub
I am new to all of this, so if this all jacked up I apologize.
Thanks for any help
field (which is the primary key in the table and is an autonumber) named
"ISSUEID". This shows all the records of Table1.
I have also created Form2 which shows a single record from table1( This also
has the field "ISSUEID".
What I would like is when I double click on the "ISSUEID" on the datasheet
(form1) it will open up form2 and show that record.
Below is the code I have on double click for ISSUEID on the datasheet
(form1) it will open form2 but does not filter it to the proper ISSUEID.
Dim VarIssueID As Object
Dim stLinkCriteria As String
Dim stDocname As String
stDocname = "Issues"
Set VarIssueID = [IssueID]
stLinkCriteria = "[Issues].[IssueID]" = "VarIssueID"
DoCmd.OpenForm stDocname, , , stLinkCriteria
End Sub
I am new to all of this, so if this all jacked up I apologize.
Thanks for any help