Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Filtering records using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
capax.solutions@gmail.com - 22 Mar 2007 15:36 GMT
How can I filter a recordset used in a form record by record
programatically rather than via SQL?

I have a fairly complex vba function that can decide whether the
record needs to be displayed or not in the form but it's difficult/
impossible to convert into an SQL statement. Is there any way I can do
this?
Marshall Barton - 23 Mar 2007 01:01 GMT
>How can I filter a recordset used in a form record by record
>programatically rather than via SQL?
[quoted text clipped - 3 lines]
>impossible to convert into an SQL statement. Is there any way I can do
>this?

If you are using the (default) database engine, Jet, you can
call your function in a query's WHERE clause.  e.g.

SELECT fa, fb, fc, . . . FROM table WHERE yourfunc(fx,fy,fz)

OTOH, maybe your situation will yield to a clever
combination of query operations.

Signature

Marsh
MVP [MS Access]

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.