Results 1 to 6 of 6
  1. #1
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58

    Date Control Won't Populate Existing Record

    Hi, All,
    I'm seeing the light at the end of the tunnel with my movie code .accdb, and I'm hoping this is the last procedure of new code I will need to write.

    1) I have a detail table with two fields, "moviecode" and "moviecodesenddate". I use the date field with null values in a query to populate a listbox on my form.
    2) My form has a "movie code send date" text box control that is sourced to that date field on the table.
    3) When I enter a test record in my form, I enter a date in the "movie code send date" control, but it doesn't populate the date field on the table that corresponds to the movie code I picked in the listbox - or any other field for that matter. I tried saving the record and checking the table, but still no go. You would think it would just save the date in the same record as the movie code that was picked in the listbox, but no.
    4) I suspect this is happening because even though the date control is sourced to the date field, simple and clean, I doesn't know which movie code in the table to populate next to BECAUSE of the listbox. It's like the listbox is subverting the date control's control source. (FYI, my records disappeared in form view until I made sure the test data from my only repeating field in both of my tables was the exact same data).



    This is where I could use some advice -

    5) I think I need to use an AfterUpdate, OnChange or OnLostFocus event on a DLookup or Like "*" procedure to get the user-entered date in the same table record as the movie code picked from the listbox. I'm leaning toward DLookup code (that looks up the chosen movie code in the listbox on the table and populates the date control value in the date field). What do you
    guys think would be the most straightforward method here?

    Thanks, again, for any bit of thought or advice.

    This post also exists at http://www.utteraccess.com/forum/Dat...-t1981218.html

    Frank
    Last edited by Soule; 01-27-2012 at 09:40 AM. Reason: Another idea.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Need to review project if you would like to provide it. Attach to post.
    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
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58
    Quote Originally Posted by June7 View Post
    Need to review project if you would like to provide it. Attach to post.
    I'm sorry, June, it's proprietary and I can't. I can post my source control and query statements, though. I'll put them up...

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Propriety? The data? Don't need real data. Make copy and remove data, run Compact & Repair.
    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.

  5. #5
    Soule is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Dec 2011
    Posts
    58
    Quote Originally Posted by June7 View Post
    Propriety? The data? Don't need real data. Make copy and remove data, run Compact & Repair.
    Thanks for your interest, again, June, but that would be like creating another Db. And two is almost killing me as it is. heh heh

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Well, for this issue, that's the only way I can figure out what's wrong. Maybe someone else will have more insight.
    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.

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

Similar Threads

  1. Tab control / add existing field
    By MissVinegar in forum Forms
    Replies: 3
    Last Post: 01-09-2012, 01:03 PM
  2. Replies: 4
    Last Post: 05-30-2011, 08:20 PM
  3. Populate existing records from Excel
    By oleBucky in forum Import/Export Data
    Replies: 2
    Last Post: 03-08-2011, 12:23 AM
  4. Replies: 0
    Last Post: 02-25-2011, 09:40 AM
  5. Populate date from previous record
    By Lianes in forum Access
    Replies: 3
    Last Post: 09-19-2009, 03:42 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