Results 1 to 4 of 4
  1. #1
    chrisargo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    6

    Populate date for an append query from an unbound control on a form

    I would like to have the user enter a date in an unbound text box on a form. Then I want to use an append query to automatically generate several assignments for three different time periods using that specific date as the date of the assignment. The way I envision setting this up is by executing three separate append queries via command buttons on the form where the date was entered.


    I can successfully do this without the use of a form by prompting for the date in each query as follows: Assignment Date: [Enter Assignment Date].




    However, I would like to make it so the user only has to enter the date one time and then they can generate the necessary assignments for that date by clicking the individual command buttons since not every time period or group of assignments is used each day.


    Any thoughts or maybe an alternative way to accomplish this goal?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Maybe:

    Assignment Date: Forms!formname!textboxname
    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
    chrisargo is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    May 2015
    Posts
    6
    My apologies. I should have included this with the original post. I tried that within the query by using the builder as well as by typing directly into the query. The query returns the assignments I am looking for but does not populate the date. Any other thoughts?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Post full SQL statement of the INSERT query.
    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. Append Query and Auto Populate
    By Divine in forum Access
    Replies: 9
    Last Post: 12-26-2013, 02:17 PM
  2. Replies: 1
    Last Post: 05-30-2013, 12:45 AM
  3. Replies: 3
    Last Post: 11-19-2012, 12:27 PM
  4. Replies: 5
    Last Post: 01-27-2012, 04:47 PM
  5. Replies: 5
    Last Post: 06-22-2011, 08:47 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