Results 1 to 6 of 6
  1. #1
    Ternick is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2013
    Posts
    25

    Auto fill help

    I made a database to help my tow company out and need help with my payroll button. I need it to run the report, then after running the report change the Paid to Driver field to yes and put in the date for the next payday. I have a query set up to show all invoices that haven't been paid before or on a set day and don't have the time to mark 100-300 invoices as paid to driver and what day we are paying it on. I don't want to have all invoices marked as paid to driver when I click on my payroll button, just the ones in the report. If I need to change how my payroll is displayed I can do that.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Are you managing payroll or are you managing vendors? Have you tried creating a query using the Query Designer?

    Before you create an update query, be sure to make a copy of your DB, create and test you update query on a copy.

    You can use tools there that will update fields within a table. Just click on the Update tool within the Ribbon while in Design View of your query. Then you can add the 'Paid' field to your query by adding the table to the design area and adding the field by double clicking it. Then type a value in the update field within the grid and for the proper column. Add other columns by double clicking the field name from within the table. Use additional columns to include criteria that will limit the records retrieved by the query.

  3. #3
    Ternick is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2013
    Posts
    25
    Itsme you are becoming very helpful. I had no idea queries could do that. I'll mess around with it. In this case I'm trying to manage my payroll, I have it set up to calculate how much each driver gets paid for a tow, if it is ready to pay to the driver and if the driver has been paid.

    BTW I somehow have two accounts on here and t

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    When you build a query using the query designer, it will generate SQL. You can view the SQL by switching from design view to SQL view. It can be helpful to understand and maybe share your SQL with others when trying to solve a problem. Also, you can employ SQL statements in places like Forms and ComboBox controls.

  5. #5
    Ternick is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Feb 2013
    Posts
    25
    Thank you Itsme. I had to have 2 payroll queries. One is for the report, the other is an update query. With the button I set it to run the report first, then run the update query and it works great. I have no option for SQL view or I would add what it has. Thank you for the help again

  6. #6
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    While in Design View of your Query Object you can switch between Datasheet, Design, and SQL view. The View button is located within the Ribbon, under the Design tab/group.
    .
    Click image for larger version. 

Name:	ViewSQL_Ribbon.jpg 
Views:	12 
Size:	35.6 KB 
ID:	22695

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

Similar Threads

  1. Need help with auto-fill
    By stephenchan433 in forum Access
    Replies: 1
    Last Post: 11-09-2015, 07:26 AM
  2. Auto fill
    By jojomac in forum Access
    Replies: 1
    Last Post: 10-10-2012, 09:57 AM
  3. Auto Fill
    By Scotty J in forum Forms
    Replies: 10
    Last Post: 11-21-2011, 10:08 AM
  4. Auto Fill
    By Phoenyxsgirl in forum Forms
    Replies: 28
    Last Post: 10-12-2011, 05:48 PM
  5. can't auto fill
    By chrisrach3 in forum Access
    Replies: 7
    Last Post: 09-12-2011, 04:41 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