Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Niagara Falls, New York, USA
    Thanked 0 Times in 0 Posts

    RecordSource Set To Query vrs SQL? (a2k (9.0.3821) SR-1 Jet 4.0)

    RecordSource Set To Query vrs SQL?
    a2k (9.0.3821) SR-1 Jet 4.0

    Where do I get the best performance?

    1. Form RecordSource set to a Query
    2. Form RecordSource set to actual SQL

    Thanks, John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: RecordSource Set To Query vrs SQL? (a2k (9.0.3821) SR-1 Jet 4.0)

    In theory, setting the Record Source property to the name of a stored query is better, since Access optimizes the execution of stored queries.
    In practice, you won't notice much difference, except perhaps if you have an extremely complicated query. I regularly set the Record Source of a form to a dynamically generated SQL string in code, and it doesn't seem to have a noticeable influence on performance.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts