I have 2 variable newsql3 and newsql9, the relevant query is below;
SELECT tblBugs.BugsID, tblBugs.DateB, tblBugs.Clarify_Case, tblBugs.DescriptionB, tblBugs.NotesB FROM tblBugs ORDER BY tblBugs.BugsID;
tblBugs.BugsID is the keyID
here is the relevent code;
Private Sub IOS_AfterUpdate()
If (Me.IOS <> "") Then
newsql3 = BuildFilteredSQL(Me.IOS, "IOS_only2", OriginalSQL2)
Me.ListBugs.RowSource = newsql3
End If
End Sub
Private Sub CmdCompare_Click()
If (Me.IOS2 <> "") Then
newsql9 = BuildFilteredSQL(Me.IOS2, "IOS_only2", OriginalSQL2)
Me.ListBugs.RowSource = newsql9
End If
End Sub
This is what the bit of the module the queries are calling;
Case "IOS_only2"
sqlwhere = "WHERE ((tblIOSaka.IOSakaID Like '*" & filtertext & "*'))"
So newsql3 and newsql9 are search results. What I want to do is compare these two search results, and change the Me.ListBugs.Rowsource to show either all matching records, or all non-matching records, matching will be on
Any help will be greatly appreciated!!!!
SELECT tblBugs.BugsID, tblBugs.DateB, tblBugs.Clarify_Case, tblBugs.DescriptionB, tblBugs.NotesB FROM tblBugs ORDER BY tblBugs.BugsID;
tblBugs.BugsID is the keyID
here is the relevent code;
Private Sub IOS_AfterUpdate()
If (Me.IOS <> "") Then
newsql3 = BuildFilteredSQL(Me.IOS, "IOS_only2", OriginalSQL2)
Me.ListBugs.RowSource = newsql3
End If
End Sub
Private Sub CmdCompare_Click()
If (Me.IOS2 <> "") Then
newsql9 = BuildFilteredSQL(Me.IOS2, "IOS_only2", OriginalSQL2)
Me.ListBugs.RowSource = newsql9
End If
End Sub
This is what the bit of the module the queries are calling;
Case "IOS_only2"
sqlwhere = "WHERE ((tblIOSaka.IOSakaID Like '*" & filtertext & "*'))"
So newsql3 and newsql9 are search results. What I want to do is compare these two search results, and change the Me.ListBugs.Rowsource to show either all matching records, or all non-matching records, matching will be on
Any help will be greatly appreciated!!!!
Last edited: