Search results

  1. D

    Clearing data in a form after clicking print report

    I have a form that searches all Vendor payments and the subform produces all the payments to that vendor. I have created a report that prints the results by clicking "Print Report" button. I would like to clear the data on the form when I open that report. Attached is the code that opens the...
  2. D

    Solved Starting Appended Data at 1

    I have a Database that I use as a Template to load new data into when setting up for other people. When I append the new data it does not start at 1. With the database empty, I have created a new ID with Auto Number in each table and I have compacted the Database. The appended Data does still...
  3. D

    Solved Open a report that filters off a form field

    I have a form that filters data by the DemoClientID to the subform. When a Client is selected on the form it brings up all the records for that Client in the subform. I have created a report that contains all the data I want to display and I have created a button to open that report. I want the...
  4. D

    Solved DMax

    I have a form with Vendors that enters information to the tblDemoTrans and a subform that the Receipt information from the Vendor entered into. I want to do a DMax on the ReceiptNr field in the subform. I have tried: DMax("ReceiptNr","tblDemoTrans") + 1 and...
  5. D

    Subform requery is starting a new record

    https://www.access-programmers.co.uk/forums/threads/after-update.333880/ I just realized I had posted this question a couple of weeks ago, I thought it was fixed, I guess the problem persists. I don't know how to remove this post. I have a form to create payroll checks. It has 2 subform, 1...
  6. D

    Solved Query showing all records instead of just the ones that meet the criteria

    I am working on finalizing a query to calculate Payroll taxes. The last 2 queries be going to a form are QryStateTax which calculates with the 9 employees as it should. It then feeds that information to the qryCDpayrolltaxesWI which adds the St Tax Table to calculate the income if Marital...
  7. D

    Working with VBA and where it starts

    Isaac wrote me a sample VBA. Where does this language go? Does it go into the query itself or into the sql version. I'm trying to learn where the vba would go? https://www.access-programmers.co.uk/forums/threads/combining-iif-statements.333918/post-1961313
  8. D

    Solved Nesting IIF Statement with functions that end in (field)

    I have 4 IIF Statement that calculate State Taxes for marital status: Married, Single and greater than > income, or less than <income for each marital status. All 4 Statements end in -([Exemption credit]) or -([Exemption credit])). They work individually they way they are supposed to. When I...
  9. D

    Make a negative number a "0"

    I have a query expression with some of the results being a negative numbers that I wish to change to a 0. I have Salaries minus several deductions created several "Employees" to be negative which means they get a standard deduction so I want the results to be 0 instead of negative. Net Wage...
  10. D

    Solved Combining IIf Statements

    I have 2 IIF statements that work individually, when I combine them I get this error, The expression you entered has a function containing the wrong number of arguments. What am i doing wrong? IIf([tblEmployees].[Marital Status]=1,[tblEmployees].[Basic...
  11. D

    Solved to return a ID value if criteria is met

    Is there a way to return an ID from another table if criteria is met. Ex. If an Employee has 12 pay periods, taxes are filed individually, Minimum is >0 and <2500 (All of these fields would be in the Tax table) and return the TaxID to the Employee table that matches? Or to have a query that...
  12. D

    Me.Requery or Me.Recalc

    I have a subform that "On update" of "Amount" I have Me.Recalc to update the Sum on the Main form. When i tab through the end of the line it goes back to the first record instead of a new record. Thoughts on how to fix this?
  13. D

    After update

    I have a Main form with 2 subforms. The main form contains records from the Table “Employees”, showing “Hourly Rate, “Hours per Pay Period” and “Total of paycheck”. I have added a Text Box that calculates Overtime owed if there is any. Subform 1 shows the calculation of the Taxes owed from the...
  14. D

    Solved Creating a query with 1 table and 4 queries adds a new record

    I am building a query to show all payroll taxes for Federal, State, Social Security and Medicare to match the Employee and ClientID. All 4 taxes are in to seperate queries that calculates the tax based on the pay period salary. I'm now combining the Employee table and all 4 queries for taxes...
  15. D

    Solved Appended Data changes to Table ID

    I have a Payroll form that when I fill it out the MyUCA is correct. I run an Append Query to move the data to the tblDemoTrans. When it transfers it changes to the ID of tblDemoUCAs. Attached is screen shots of how it is entered, how it transfers and where the number is coming from. Thoughts on...
  16. D

    Enter Parameter Value

    This worked fine until I had to add "Marital Status" to my tblpayrolltaxes. Now I am getting the "Enter Parameter Value", "tblEmployee.Marital Status", on run. I have Marital Status as the join which calculates correctly when I click Ok. SELECT tblpayrolltaxes.MyUCA, tblpayrolltaxes.[Percent of...
  17. D

    Error on cancel

    I have reports that are triggered off parameters. When the first parameter request comes up, if i cancel, I get "The OpenReport operation was canceled". How do i get it to cancel without the error? This is my code Private Sub btnPrintChecks_Click() DoCmd.OpenReport "rptChkWrite"...
  18. D

    Solved Creating a button to run a Delete Query

    I have a Payroll table that when payroll is due, i run the append query to add it to my transactions table, then I run a delete query to clear out those records and start a new pay period. I created the delete query which works and want to set up a button to run the query. That query is not an...
  19. D

    Solved Entering Data in Subform creates a OLE Server or Active X Control Error

    My subform was working fine. After I appended the data to another table and deleted the records in that table I started getting the error: A problem occurred while (database) was communicating with OLE Server or Active X Control. Close the OLE Server and restart it outside of (database), then...
  20. D

    Solved Subform adding blank record

    I have a subform that I am entering records related to the ClientID on the main form. It creates an extra blank entry when i enter the line prior. How do i stop it from doing that. Image attached.
Back
Top Bottom