Results 1 to 4 of 4
  1. #1
    sdamlo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    2

    List and Select Tables

    Hello,
    I have a question that may be simple, but I can't seem to find where to start. I have a form I am creating that a user will be entering data into. They enter 15-20 records a week and each week will be entered on a new table.

    What I am trying to create on the form is a list of my created tables and then having the user be able to select a table off of the list. By select I mean having the form data source be that selected table so they view/edit data on that table.

    I do have a combo box that is running the query:

    SELECT MsysObjects.Name AS
    [List Of Tables]
    FROM MsysObjects
    WHERE (((MsysObjects.Name) Not Like "~*" And (MsysObjects.Name) Not Like "MSys*")


    AND ((MsysObjects.Type)=1))
    ORDER BY MsysObjects.Name;

    And that list all of my tables but how would I edit the double click (or single Click) to have that selected table become the data source?

    Thank you

  2. #2
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by sdamlo View Post
    They enter 15-20 records a week and each week will be entered on a new table.
    I hope you realize that is a very bad, bad thing. You shouldn't be using a new table for each week. That is horrendous as far as databases go because then getting data back out (and as you are seeing for entry) it is not fun trying to get it working for data entry.

    So, WHY do you have to have a new table each week? What is the purpose? How can that be useful?

  3. #3
    sdamlo is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    2
    Each week of 15-20 entries is sent to a Word Doc for mail merge. Sometimes they have to reprint out the merge for the week and don't want every entry, just the last weeks one. So they will select the week's table they want to mail merge again.

    If there is a better way of doing this please let me know.

  4. #4
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    Quote Originally Posted by sdamlo View Post
    Each week of 15-20 entries is sent to a Word Doc for mail merge. Sometimes they have to reprint out the merge for the week and don't want every entry, just the last weeks one. So they will select the week's table they want to mail merge again.

    If there is a better way of doing this please let me know.
    You can use a query for the merge instead of a table.

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

Similar Threads

  1. Multi select list box
    By foxtet in forum Forms
    Replies: 1
    Last Post: 05-30-2011, 02:13 PM
  2. Select multiple items from list box
    By sharmaprashant22 in forum Queries
    Replies: 2
    Last Post: 05-05-2011, 12:18 PM
  3. Replies: 1
    Last Post: 10-22-2010, 10:11 AM
  4. Use one subform as a select list
    By larryb43 in forum Forms
    Replies: 0
    Last Post: 02-27-2010, 03:08 PM
  5. Select value from a list box
    By Hidenite in forum Queries
    Replies: 8
    Last Post: 01-29-2010, 11:31 AM

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