Re: Speed Effeciency on Form updates

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The answer depends on what the calculations are, and how many disk reads, recordset opens etc are involved in them.

In general, it's best to do anything that SQL can do first, such as joins, aggregation, criteria, subqueries, queries stacked on each other.

Once you hit a wall with SQL, you can start thinking about a VBA solution.

If that gets too inefficient also, you will need to consider using a temporary table to store the partially massaged data for further processing.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"KM" <KM@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2739844D-B29A-479C-AFEA-C19FAD65745F@xxxxxxxxxxxxxxxx
Question on overall Form design
Have a lot of data on a financial form, 20 rows, 8+ columns
In addition, delta columns are present and math on these can change
depending on the user choices.

Question:
Is it more effecient to us VB to calculate column differences and stuff the
results into the form fields or is it better to use controlsource property
and set the formula within the field and let the form calculate it?


.



Relevant Pages

  • Re: SQL Injection Code Help
    ... Sorry but I am a newbie. ... "Dan Guzman" wrote: ... We have locked down the SQL ... form fields to only allow the following characters so no SQL instructions ...
    (microsoft.public.sqlserver.security)
  • RE: Data Access
    ... Someone has already written some code to use reflection and custom attributes ... to dynamically build the required SQL. ... > execute the stored procedure. ... > when there are say 30 form fields that need to be inserted or updated. ...
    (microsoft.public.dotnet.general)
  • SQL Database results follow up
    ... I have the simplest of queries against a SQL table: ... f_docnumber to search for in the database. ... One or more form fields were empty. ... the query works perfectly. ...
    (microsoft.public.frontpage.client)
  • Re: SQL Injection Code Help
    ... I'm so tired of seeing people working as programmers that know absolutely ... We have locked down the SQL ... form fields to only allow the following characters so no SQL ... If an apostrophe is entered we want it to be converted to two ...
    (microsoft.public.sqlserver.security)
  • Re: Need help with code issue.
    ... Debug.Print sql ... Allen Browne - Microsoft MVP. ... Tips for Access users - http://allenbrowne.com/tips.html ... My boss has no concept of what it takes to create any ...
    (microsoft.public.access.modulesdaovba)