Results 1 to 2 of 2

Thread: Where to keep queries

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1
    Greets all,

    I am developing a n-tier application (UI - Biz Rules - Data Source) using a mdb (Access/Jet) file as my data source. I am interested in storing queries EXTERNAL to the mdb file. That way I could update the queries at anytime by replacing 1 file. (Let's say I optimize some queries at a later date or...gasp...find a bug!)

    I access all my ADO stuff through middle-tier code and not any ADO objects on UI forms.

    Maybe I could have my queries in one mdb file with links to tables in the other. But then I would have to make sure all the links were restored/current when the application was run. Hmmm. Any ideas?

    Corey

    If it's stupid but it works, it isn't stupid.

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593

    Exclamation

    Why not store the queery (SQL Stat) as a plain txt file, e.g.

    Code:
    SELECT whatever FROM whatever WHERE whatever
    and then open the recordset as follows:

    Code:
      Dim rs As Recordset
      'whatever$ = the contents of your TXT file.
    
      set rs = Db.OpenRecordset(whatever$)
      '
      ' etc....
      '
    I really hope this mumbo jumbo makes any sense to ya!

Posting Permissions

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



Click Here to Expand Forum to Full Width