Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2014
    Posts
    21

    Dispensing with temporary tables (and specifically, adding fields to recordset)

    In some forms and routines I create where I need to manipulate tables, I use "temporary" tables as a support (actually, they are permanently stored as objects in the database). However, I'm under the impression that they are unefficient, an instant tell of a novice programmer and besides they "contaminate" the schema without adding any real information, so I'm looking forward to implementing all my forms and subs without them. What is the standard way to do it? How do you guys do without them?



    I'm trying using ADO recordsets, but I'm stumbled into a roadblock because sometimes I need to have additional temporary fields in order to mark groups of records within the recordset, but so far I can only either use all existing fields from tables or make and entirely new recordset without a source (can't add fields once the recorset is open). Do I have to create a new recordset and populate it manually row by row? It seems like the only solution to me right now, but I can't help feeling there must be a shorter way to accomplish it.

    (I'm using ADO because I know it better than DAO, but if there's a way to proceed with DAO I'm willing to learn).

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I use 'temp' tables for several procedures because it really is the only way I could figure to get the report output I want from the data structure. Inefficient or not, they get the job done.

    I know nothing about 'new recordset without a source'.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 6
    Last Post: 02-11-2014, 05:20 AM
  2. Temporary Tables
    By ajzpop in forum Access
    Replies: 5
    Last Post: 10-09-2013, 04:30 PM
  3. Replies: 1
    Last Post: 08-06-2013, 07:52 PM
  4. adding new column to recordset
    By pradeep.sands in forum Forms
    Replies: 10
    Last Post: 07-09-2013, 11:53 AM
  5. Temporary tables
    By MDB in forum Forms
    Replies: 3
    Last Post: 08-14-2011, 12:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums