G
Guest
I have a list box on my form that comes from a seperate query than the forms source code and I would like to use an option group for the user to decide what to filter. Any help would be greatly appreciated.
forms source code and I would like to use an option group for the user toSteve said:I have a list box on my form that comes from a seperate query than the
tblSawInventory.Saw_ID = tblIssueReceive.Saw_ID"Steve said:Graham,
After playing with it a little more, I came up with this code and it worked:
Dim sSQL As String
sSQL = "Select tblissueReceive.Saw_ID, [Mill_ID]"
sSQL = sSQL & " & [Bandsaw_Type] AS Expr1"
sSQL = sSQL & " From tblsawinventory Inner Join tblIssueReceive ON
AND ((tblIssueReceive.Date_Returned) Is Null)"sSQL = sSQL & " WHERE(((tblIssueReceive.Date_Issued) Is Not Null)
[Bandsaw_Type] AS Expr1, tblIssueReceive.Date_Issued,sSQL = sSQL & " AND ((tblIssueReceive.Saw_ID) like "
Select Case Me!SawFilter.Value
Case 1: sSQL = sSQL & Chr$(34) & "BH*" & Chr$(34) & ")) ORDER BY tblIssueReceive.Saw_ID"
Thank you for helping me out. Would you say this was the correct way to do it?
Steve
Steve said:Graham,
I tried what you were saying and here is my code:
Dim sSQL As String
Select Case Me!SawFilter.Value
Case 1: sSQL = "SELECT tblIssueReceive.Saw_ID, [Mill_ID] & " " &