Results 1 to 6 of 6
  1. #1
    davidj is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Oct 2016
    Posts
    4

    populating a specific table using user input data through queries

    I have a database that manages assets at a refinery. I am a very inexperienced Access user but am making my way along very slowly with help from the web and others. What I would to add to my database is the functionality to track my daily progress through prompts that will build a table with user input data. The table has been created with 3 fields: a date field which I would like to auto-populate with the present day the query is initiated, a number of "tags" entered that day, and a long text description of other work performed. I would like a button to be placed on my main form that when clicked prompts the user with "How many tags have you entered today?" then once a number is entered the next prompt ask,"Is there anything else you helped with today?". The information input into these prompts would be stored into the table in the respective fields. Obviously the date would auto-populate for that day and so on each time the button on the main form is clicked. Please help. I appreciate any input.

    Thanks,


    Dave

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    You don't have to keep asking the user questions....
    use a form,in a grid or continuous form,
    the user has 2 fields for entry for that day.

    1 the date is already there as default. Set default= Now(), no entry needed.
    2 the user enters the tag
    3 user enters the description of work.

    user repeats entries down the list until every tag is entered.

  3. #3
    davidj is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Oct 2016
    Posts
    4
    I would like to have a button added to my main form (which displays other information regarding the assets that i track) and when the button is clicked the prompts pop up to ask the enter to enter the data. This data this is entered is automatically stored in a table that i have created called journal. I am trying to set this up as a daily tracker of work built into my existing asset tracking database. Its basically a tool i can use to justify my exsistence. LOL

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    Sounds like the button would run an append query to add the journal table.

  5. #5
    davidj is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Oct 2016
    Posts
    4
    Quote Originally Posted by ranman256 View Post
    Sounds like the button would run an append query to add the journal table.
    Could you help in what this would look like in design view of the query?

  6. #6
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    You would create an append query which would contain the prompts, something like this:

    INSERT INTO tablename( field1, field2 ) SELECT [Enter number of tags] AS Expr1, [Anything else?] AS Expr2;

    Another option would be to create a pop-up/modal form to open when you click the button. That would be a lot more controllable from your side and also more user-friendly. It would have the table name as the record source and would open on a new record, the user would enter the information and when the form closed the record would be saved to the table.

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

Similar Threads

  1. Replies: 2
    Last Post: 08-13-2015, 12:58 PM
  2. Replies: 1
    Last Post: 11-04-2014, 12:07 PM
  3. Replies: 8
    Last Post: 09-19-2013, 06:22 AM
  4. Replies: 7
    Last Post: 09-06-2011, 08:00 PM
  5. Replies: 0
    Last Post: 03-22-2010, 07:51 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