Results 1 to 6 of 6
  1. #1
    JJCHCK is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    30

    create table filtering a recordset


    Hi evreybody
    Im tring to create a table with db.execute method but i have problems
    with the filter method...I'm new to Vb

    I have a table wich contains records that i want to reflect in another table....i attache my db

    sorry for english

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Why do you need records in a another table?

    What is the SELECT statement that fSql needs to be set to?

    You have 'Option Explicit' spelled as 'Optione Explicit'.
    You have dbs.Execute instead of db.Execute.
    If you did Debug>Compile these errors would be apparent.

    You don't do anything with rstFiltered.
    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.

  3. #3
    JJCHCK is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    30
    You're right excuse: they are hasty and confused
    I must ottenerer records from a subset of the Customers table like table tmp to send a mail to the system administrator.

  4. #4
    JJCHCK is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    30
    tmpRcaCodclfTipoDest1DL3CN5CN

    this is the table i would get
    sorry again for english

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Not necessary to write records to a temp table for email. Build Access query with filter criteria. Use the query.
    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.

  6. #6
    JJCHCK is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Posts
    30
    I think i will do so...
    thank you June7

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

Similar Threads

  1. Join Key of table in recordset
    By Rohit0012 in forum Forms
    Replies: 14
    Last Post: 09-24-2011, 09:04 PM
  2. Filtering on Field Names from Table
    By reddog1898 in forum Access
    Replies: 3
    Last Post: 05-13-2011, 10:47 AM
  3. Replies: 6
    Last Post: 09-16-2010, 04:59 PM
  4. Join A Recordset to the current db Table
    By mjellis in forum Programming
    Replies: 0
    Last Post: 08-10-2010, 02:44 PM
  5. Create a recordset for a report
    By vjboaz in forum Programming
    Replies: 0
    Last Post: 11-18-2008, 03:28 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