Okay, would help to know your data structure. Following is what I pictured:
tblPicks
PickID
EventID
BettorID
BettorPick
tblBettors
BettorID
BettorName
tblEvents
EventID
EventDate
EventName
Query: SELECT * FROM tblPicks WHERE BettorPick = " & tbxPBnumber
That would give you all the BettorID's with pick matching a winning number.
If you want their name then make a query that joins to the tblBettors. If you
want all events then build a join query with the tblEvents and tblPicks and
again if you want bettor names include tblBettors. Join links would be based
on the ID fields. Use the Access query builder to aid in building queries. If
your table structure is as I think then could build query to find winners for
a specific event (a query for all events would be more complex than I want to
tackle). Example:
SELECT BettorName FROM table WHERE “ & _
“fieldNumber1 = “ & tbxDailyNum & _
“ Or fieldNumber2 = “ & tbxDailyNum & _
“ Or fieldNumber3 = “ & tbxDailyNum & _
“ Or fieldNumber4 = “ & tbxDailyNum & _
“ Or fieldNumber5 = “ & tbxDailyNum & “;â€
The syntax shown in example queries would be as appears in VBA code.
I am not sure what you mean, and I think it would be complicated by the fact
that each pick in the winning numbers would need to be compared to 5 columns
[quoted text clipped - 7 lines]