Tom,
 
The most eloquent approach to accomplishing your goal is to create a VIEW of 
all reports with report names and descriptions, and then use that view to 
design a cool interface that uses the Enhanced DB Grid with a filter to search 
and capture the selected report in a variable. Then, use that selected report 
to do whatever you want to do.
 
Here is a simple command to create a dynamic TEMPORARY VIEW or a Permanent VIEW.
 
To Create a TEMPORARY View:
SET ERROR MESSAGE 677 OFF
DROP VIEW tListOfReports
SET ERROR MESSAGE 677 ON
CREATE TEMPORARY VIEW `tListOfReports` (ReportName,ReportTable,ReportComments) +
AS SELECT Sys_Report_Name,Sys_Table_Name,Sys_Comment +
FROM Sys_Reports3 ORDER BY Sys_Report_Name
COMMENT ON VIEW `tListOfReports` IS 'List of Reports to be Shown in the 
Enhanced DB Grid with Filters'
RETURN
 
To Create a Permanent View
SET ERROR MESSAGE 677 OFF
DROP VIEW ListOfReports
SET ERROR MESSAGE 677 ON
CREATE VIEW `ListOfReports` (ReportName,ReportTable,ReportComments) +
AS SELECT Sys_Report_Name,Sys_Table_Name,Sys_Comment +
FROM Sys_Reports3 ORDER BY Sys_Report_Name
COMMENT ON VIEW `ListOfReports` IS 'List of Reports to be Shown in the Enhanced 
DB Grid with Filters'
RETURN
 
I hope that gets you started with your goal. Make any adjustments as you see 
fit.
 
--Razzak

> On 01/28/2026 7:38 PM EST Tom Hart <[email protected]> wrote:
>  
> 
 

> I have various reports for sales, inventory, etc and use the choose command 
> to select what I want
> CHOOSE vTag FROM #reports
> this lists all the reports I have,I want to know can I filter the choose 
> command with a where clause like
> where #report contains 'sales'
> to only pull up sales receipts
>  
> Tom Hart
> 
>  
> 
> --
> For group guidelines, visit 
> http://www.rbase.com/support/usersgroup_guidelines.php
> ---
> You received this message because you are subscribed to the Google Groups 
> "RBASE-L" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> mailto:[email protected].
> To view this discussion visit 
> https://groups.google.com/d/msgid/rbase-l/CABX9BNfQpZaD%3DphvHZWaWjiJHwR0GLGz1tCXREMOxM%2BBdMx24g%40mail.gmail.com
>  
> https://groups.google.com/d/msgid/rbase-l/CABX9BNfQpZaD%3DphvHZWaWjiJHwR0GLGz1tCXREMOxM%2BBdMx24g%40mail.gmail.com?utm_medium=email&utm_source=footer.
> 

-- 
For group guidelines, visit 
http://www.rbase.com/support/usersgroup_guidelines.php
--- 
You received this message because you are subscribed to the Google Groups 
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/rbase-l/66226162.172250.1769657353734%40email.ionos.com.

Reply via email to