Results 1 to 6 of 6
  1. #1
    Yurimeta19 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    5

    ListBox problem.


    Hello, Basically my problem is this: Within a table in my database I would like to be able to have access append lets say Record1 to another table once an option within a listbox is changed from no to yes. Is this doable?

    example. Record1 has been checked to yes. Append this record to a different table that is linked to an excel sheet so that excel will now have the new data on just the one record.

  2. #2
    Yurimeta19 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    5
    *Bump* Anyone? =) I'm trying everything I can think of.

  3. #3
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    generally the correct way to do this is not to actually move or append the data but to join the records as part of a query.

    how is excel receiving data from Access? a link, in Access terms, allows Access to receive excel data and not the reverse per se...I'm an Access developer not an Excel developer....is there an Excel Link method which allows Excel to dynamically get Access sourced data? - if so - then it probably can connect to a query as easily as to a table....

  4. #4
    Yurimeta19 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    5
    yes. I currently have a seperate table set up (linked) to pull records from the database. It works the exact same way as the reverse link (excel to access) however both the database and excel files are able to have the data changed within them.

    I just can't figure out how to get the records that are changed to "Yes" to move into my linked table so that excel will be updated accordingly.

  5. #5
    Yurimeta19 is offline Novice
    Windows 7 Access 2007
    Join Date
    Jun 2010
    Posts
    5
    Hmmm I think what you said about linking to a query got my brain going. I queried the first table for the columns I needed where and set the criteria for the column in question to = Yes . This set up the desired query and from there I just linked the query instead of the table to the excel file.

    Now if there was just a way to autorun the query every time the first table is closed.

  6. #6
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    You could use a Datasheet Form to view/edit the first Table. Then you can just use the Form's On Close event to run the Query.

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

Similar Threads

  1. How do I get data from a listbox?
    By cowboy in forum Programming
    Replies: 1
    Last Post: 06-15-2010, 02:28 PM
  2. Horizontal listbox - ?
    By bane in forum Forms
    Replies: 3
    Last Post: 04-20-2010, 06:48 PM
  3. Replies: 3
    Last Post: 04-14-2010, 10:00 AM
  4. Listbox question
    By uaguy3005 in forum Access
    Replies: 1
    Last Post: 03-05-2010, 08:35 AM
  5. Columns in a Listbox
    By craigalaniz in forum Access
    Replies: 3
    Last Post: 01-07-2010, 01:11 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