ByronJohnson
MIS
Here is my code.
Private Sub cmdCompute_Click()
Dim critstr As String, x As Integer
For x = 1 To 8
If Me("combo" & x) <> "" Then
critstr = critstr & Me("combo" & x).Tag & " = '" & Me("combo" & x) & "' And "
End If
Next x
critstr = Left("critstr", Len("critstr" - 5) ' I get an error on this line saying ' Ambiguous name detected: Left
' I don't understand why?
Me.picList.RowSource = "SELECT Distinct lacIbase, Mutation, Count(Mutation) As [Number Observed] FROM The_Big_Query WHERE " & critstr & " group by lacibase, mutation"
Me.Refresh
End Sub
Private Sub cmdCompute_Click()
Dim critstr As String, x As Integer
For x = 1 To 8
If Me("combo" & x) <> "" Then
critstr = critstr & Me("combo" & x).Tag & " = '" & Me("combo" & x) & "' And "
End If
Next x
critstr = Left("critstr", Len("critstr" - 5) ' I get an error on this line saying ' Ambiguous name detected: Left
' I don't understand why?
Me.picList.RowSource = "SELECT Distinct lacIbase, Mutation, Count(Mutation) As [Number Observed] FROM The_Big_Query WHERE " & critstr & " group by lacibase, mutation"
Me.Refresh
End Sub