Results 1 to 11 of 11
  1. #1
    AlexTheGr8 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Ontario
    Posts
    11

    Unhappy Combining data from one table + new data entered on a form to a second table! So confused.

    Hi All,

    I hope I can word this correctly.

    Essentially I have Table1 which contains all of our new clients (name, age, address, uniqueID) - that is updated daily.

    What I want to do is have a form where our staff can click on a new client (from Table1) and see the details of their application appear in the form, PLUS a few extra blank boxes that are NOT linked to Table1. Once that client has been 'verified' by staff as eligible for a program, they can enter in "approved", and the staff name, and a few other fields into these blank boxes on the form.
    Then they can click a button that runs some type of query (make table, update, append??) that will send this new information to a second table. This second table will contain all the info on the staff follow up, but have a join of the uniqueID to Table1, so we can analyze the information when needed.



    I don't want anything deleted from Table1 (I want it to stay unchanged), rather I want Table2 to get a 'push' of copied data from Table1, plus all the new fields that were present in the Form. I'm not an Access master and feel a little out of my depth, but am willing to learn!

    I feel like I'm missing a way to word this - hope I make sense! Any links are definitely appreciated

    Thanks!
    A

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Append query.
    in the query take data from table1, with the form data, append to table 2.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Instead of Table1 and table 2, it may reduce your confusion if you told us the "subject matter" of these 2 proposed tables.
    The first sounds like tblClient. That table could have a field(s) for Approver, Approved_YN, ApprovedDate and these fields could be updated within your verification/approval process.
    What would you call/name the second table?

  4. #4
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    Don't duplicate the table 1 fields in table 2; just add the new fields from the form and the uniqueID from table1. You can put them together at any time using a query that joins the two by the uniqueID. If you use a form (bound to table 1)/subform(bound to table 2) it will automatically add the uniqueID in table 2 if that is set in the master/child linking fields property.

    Cheers,
    Vlad

  5. #5
    AlexTheGr8 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Ontario
    Posts
    11
    Hey! Thank you for your reply!
    Yes so Table1 = ClientTable
    Table 2 = ApprovedClientTable

    It was my original plan to just have one table, with the additional fields in ClientTable, instead of having a second Table.
    However, because the data in ClientTable is being updated daily through a daily update from new Excel files as they come in to staff, these Excel files won't have these extra fields in them. So I figured having a second table would eliminate any manual work for the staff. All new data not in the Excel would just be captured in ApprovedClientTable and a join can be made for reports to be generated.

    I might be creating extra work for myself - so I figured I'd ask the experts!

    Thanks!

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Is there anything in the proposed second table that could have multiple entries? If not, then 1 table with the extra fields could suffice.
    Your new daily data from Excel could fill the regular fields and leave the "extra" fields empty. The "extra" field would get valued during the 'approval/verification' process.

  7. #7
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    orange, I think the entire table 1 gets refreshed from Excel daily (meaning emptied and re imported), so any info in the extra fields would be lost in the process. I have successfully implemented the two table approach I described in my earlier post as long as the uniqueID (in my case an external student number) from Excel is constant.

    Cheers,
    Vlad

  8. #8
    AlexTheGr8 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Ontario
    Posts
    11
    Quote Originally Posted by Gicu View Post
    Don't duplicate the table 1 fields in table 2; just add the new fields from the form and the uniqueID from table1. You can put them together at any time using a query that joins the two by the uniqueID. If you use a form (bound to table 1)/subform(bound to table 2) it will automatically add the uniqueID in table 2 if that is set in the master/child linking fields property.

    Cheers,
    Vlad
    Thanks Vlad - and would this be an append query then? To append to Table2? And that will leave Table1 data as a stand alone, not deleted or altered?

    Thanks!

  9. #9
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,235
    Not sure what you're asking. The subform will add a new record in table 2 if one doesn't exist or it will show you the info in the existing record based on the uniqueID in table 1. So the main form bound to ClientTable (which gets refreshed daily from Excel) would have in its header some search box (combo-box) to find the records, the details section will display the client info and also have a subform bound to ApprovedClientTable where you edit the non-Excel data.

    Cheers,
    Vlad

  10. #10
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    Quote Originally Posted by Gicu View Post
    orange, I think the entire table 1 gets refreshed from Excel daily (meaning emptied and re imported), so any info in the extra fields would be lost in the process. I have successfully implemented the two table approach I described in my earlier post as long as the uniqueID (in my case an external student number) from Excel is constant.

    Cheers,
    Vlad
    Yes, I agree that is a possibility. The 2 tables approach is likely easier to understand also.
    I was thinking of a "collector table" with autonumber. New records could be appended to the collector.
    Those records with empty "extra" fields would be input to the verification process.
    There was no indication of the status of records that were incomplete or did not pass the "approval process".

  11. #11
    AlexTheGr8 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Feb 2019
    Location
    Ontario
    Posts
    11
    Hi All,
    Thanks for everyone's help. If anyone's interested this is what I did:
    The main table remained the same, and what I did was create a form for it. When the staff click on the client that they want to approve, the information for the client appears in the form. Then I made unbound boxes where they can enter the new informaiton for the approval process. When they enter the new info in and click on the button that links to an append query, the query pulls the information from the cells in the form (that are either linked to the client table or unbound where they typed new information) and it appends it to a new table.
    It's a little bit of a workaround but it's working so far! Thanks for the ideas, everyone!

    Alex

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

Similar Threads

  1. Replies: 9
    Last Post: 08-11-2016, 11:30 AM
  2. Data Entered into Form to update on Table
    By aussiegrl in forum Forms
    Replies: 2
    Last Post: 02-22-2016, 03:27 PM
  3. Replies: 2
    Last Post: 01-30-2015, 04:56 PM
  4. Very confused about restricting access to select data in a table
    By cantankerousoldyankee in forum Security
    Replies: 4
    Last Post: 09-20-2014, 12:25 AM
  5. Data entered into form is not shown in Table
    By engr_saud1 in forum Forms
    Replies: 5
    Last Post: 04-07-2013, 06:34 AM

Tags for this Thread

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