Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: NMiller007
  • Content: Threads
  • Order by date
  1. NMiller007

    Page Setup for All Worksheets

    I am using an Access macro to export data to multiple Excel worksheets. I have all of the data going to Excel and most of the formatting working. Now I need to set the Page Setup options for all of these worksheets. I am zooming to 90%, adding a footer, changing margins, and repeating rows at...
  2. NMiller007

    TransferSpreadsheet to Multiple Worksheets

    I am trying to export a query to multiple worksheets in Excel. I am using TransferSpreadsheet and just exporting the query works. When I try some Excel formatting within the macro, I eventually am prompted to save a copy of the file. I saw some other posts, which suggested it was a memory...
  3. NMiller007

    Mins Causing Not Part of Aggregate Function Error

    I am trying to pull the minimum of two fields and then add up two other fields from the minimum record in the table. Here is the SQL: SELECT db_history.loan_id, Min(db_history.due_dt) AS MinOfdue_dt, Min(db_history.paid_dt) AS MinOfpaid_dt, [prin_amt]+[prin_bal_amt] AS PreviousBal FROM...
  4. NMiller007

    Sort or Max on CLng

    I have a string type field that contains text, numbers and NULLs. I am setting all the Null or strings (like *[a-z]*) to zero and CLnging the others. Then I need to get the max of the new values (or just sort them descending). Whenever I add the sort or max, I get a "Data Type Mismatch"...
  5. NMiller007

    Excel Selection.Subtotal in Access Macro

    Hello, Thanks to this forum, I've learned a lot about controlling Excel documents from within an Access macro. Most of the time, I can record the Excel macro and with a little tweaking (put a . in front of the line) get it to work in Access. I am now converting an old Excel macro and I'm not...
  6. NMiller007

    Can't Refresh Data or Edit Query of Excel File

    I recently got a call to help someone with an Excel problem they were having and I can't figure it out. It is an old Excel file I believe is pulling data from an external database (ODBC) using MS Query. When I try to edit the query, it says "waiting for data to be returned by Microsoft Query"...
  7. NMiller007

    Sendmail - Allow Message Edits

    I was using .SendMail to send an Excel document that was just formatted (all of this is done from an Access macro). When I didn't define recipients, the message box would pop-up and the user could edit the body and then send. Now they want the recipients defined, so I added that in, but now...
  8. NMiller007

    Export to Text File Exporting Blank Lines

    I am trying to export a report as a text file, which we will send off for import. I am getting the data to come out how I want it using an OutputTo, but there are blank lines in the text file. For example: 0000001 01012007 500000 0000002 01012007 5000001 0000003 01022007 5005555 0000004...
  9. NMiller007

    Format Excel document from Access Macro

    I am using Access to output a query to Excel. I need to do some conditional formatting on the data, which doesn't export easily. What I need to do is export the query, do the conditional formatting in Excel and then send the updated Excel document in an e-mail. I'd like to do all this without...
  10. NMiller007

    Export to Excel With Formatting (VBA)

    I am trying to export a report (or query really) to Excel with some basic formatting. I need to change the color of one field if another field is a certain value. If I set the field to a different color, the formatting flows over. Because I need conditional formatting based on another field...
  11. NMiller007

    GoToControl Not Working

    I am using a GoToControl in an Access macro to validate a field. The macro is run from the BeforeUpdate of the field (I tried AfterUpdate as well). The macro checks the condition, if true, I have a cancel event. Then a message box, that does pop up. Then I added a GoToControl to move back to the...
  12. NMiller007

    Field Changes Around Same Time As One Change

    I'm using a table which tracks changes to certain fields. These changes are marked with a date/time stamp. The fields I am looking at are addresses that have two fields, address1 and address2. I want to count a change to address1 and address2 at the same time as one address change. I also...
  13. NMiller007

    "Freeze Columns" on a Continuous Form

    I'm working on a form that contains quite a few fields and is therefore pretty wide. I am using a scroll bar, so the user can scroll horizontally (and vertically) through all the items. Now I need to add a few more details to the form. What I need is User, Company, Group and then all the...
  14. NMiller007

    Make Table with a Yes/No Field

    I am using a Make Table Query, but I cannot get one of the fields to be a Yes/No Field. I have tried setting the values to -1s & 0s and TRUEs & FALSEs and YESes & Nos, but the values come out as -1,0 with a field type of number. Is it possible to force the field type to be Yes/No in the make...
  15. NMiller007

    Recordsource as Report Criteria

    I am trying to use a recordsource to cycle through different report criteria. I need the report to display for every user and then this report will be e-mailed. Here is my code:Dim db As DAO.Database Dim rsUsers As DAO.Recordset Dim UsersSQL As String Dim WhereCriteria As String Dim...
  16. NMiller007

    String Returned By The Builder Was Too Long

    I'm working on an automated letter report and one of the paragraphs is now giving me the "The string returned by the builder was too long. The result has been truncated." error. What are some ways to get around this? The paragraph consists of nested Iif statements that produce multiple...
  17. NMiller007

    Two Fields Linked to Another Table

    I have a User tables that contains user information with the login name as the primary key. This is the only place I am storing the full name of users. I have a table that contains requests. The table stores the login name for the person who made the request and also the login name for the...
  18. NMiller007

    If No Time Entered in Date Field, Set Time to Now

    I have a form which sets a date/time field as now when it loads up. That is working fine. The problem is, when someone overwrites the date with a new one (that is allowed) and they don't enter a time, the field only stores the date. Is it possible to automatically place the Now time in if no...
  19. NMiller007

    Continuous Forms - Reference Individual Records

    I am working with my first continuous form and am having some trouble accomplishing some things I think I should be able to do. What I have is an approval form. It lists all unapproved records with a check box which is unchecked (I used the Yes/No field from my query as the Control Source)...
  20. NMiller007

    SubReport - Page Footer/Report Footer

    I am trying to create a report that needs a graphic outline with a small graphic box at the bottom. I've gotten the report to work fine on its own by putting the small bottom graphic in the page footer of the report. Now, I need to add this report as a subreport into the report footer of...

Part and Inventory Search

Back
Top