G
Guest
I am working on a vender database. After selecting a group of venders from a table, I need to select 6 venders from that list RANDOMALLY to produce a report. Thanks in advance.
from a table, I need to select 6 venders from that list RANDOMALLY toMitchel Volk said:I am working on a vender database. After selecting a group of venders
[List_of_Venders-AFTER_CLEAN_STEP1].VENDOR,Mitchel Volk said:I tried using it like this
SELECT [List_of_Venders-AFTER_CLEAN_STEP1].ID,
FROM [List_of_Venders-AFTER_CLEAN_STEP1]
WHERE ((([List_of_Venders-AFTER_CLEAN_STEP1].[WORK CODE])=[Forms]![work code]![Combo16]))
SELECT TOP 6*
FROM List_of_Venders-AFTER_CLEAN_STEP1
ORDER BY RND (ID);
An get this error message Syntex error in query expression
'((([List_of_Venders-AFTER_CLEAN_STEP1].[WORK CODE])=[Forms]![work code]![Combo16]))
SELECT TOP 6*
FROM List_of_Venders-AFTER_CLEAN_STEP1
ORDER BY RND (ID);'
worked because I tested it before. PLease help me and Thanks in AdvanceMitchel Volk said:Sorry but that did not work I know that the part before SELCST TOP 6*