Results 1 to 2 of 2
  1. #1
    adams.bria is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2010
    Posts
    22

    Update Data, and set field

    So currently I am having people fill out a form from google docs, and I have that table as a linked table in my db. Here is my problem, I have a column in the google docs spreadsheet that is the number of lab assistants requested. I want to move that number into a field empl_request.num_req AND when that happens set Emply_request.Occ_id to '1'. Then take number of customer service attendants requested, move that to field Empl_request.num_req AND when that happens set Empl_Request.Occ_ID to '2'. And it is only going to do this when the primary keys match. The only PK I can use in the Google Docs table is timestamp, which is a FK in tbl_DC_ID and the PK in tbl_DC_ID is DC_ID. DC_ID is a FK in Empl_Request.

    In sum, I am trying to set Occ_ID to a specific number, only when num_req is coming from a specific column. Which simply seems ass-backwards to me.

    Here is a quick look at the table structure. I'm thinking I won't be able to do this with a query and would have to use VBA, but I'm not sure where to start. Thanks.
    Last edited by adams.bria; 11-16-2011 at 03:45 PM. Reason: bad .jpg

  2. #2
    adams.bria is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2010
    Posts
    22
    Realized I need to use a case select in VBA, thus now I'm in the wrong thread. Going to close and open in new thread, will link when complete.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-30-2013, 11:42 AM
  2. Replies: 4
    Last Post: 11-10-2011, 03:41 PM
  3. Data Validation error on Update - date field
    By TinaCa in forum Programming
    Replies: 6
    Last Post: 09-14-2011, 04:59 PM
  4. Replies: 2
    Last Post: 07-16-2011, 07:56 PM
  5. Replies: 1
    Last Post: 08-04-2008, 03:30 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