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 Mike Lewis 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: *

  1. ShaneSQ

    "Bad file.." when creating interface file with Macro-derived Fields

    Thanks for looking into it Charles! What a shame! The Second big code block in my first post is an example of one of the macro derived fields, some are more complex. I probably should learn SQL well-enough to do the translation, sometime... I called ADP, and, no surprise, they do not support...
  2. ShaneSQ

    "Bad file.." when creating interface file with Macro-derived Fields

    They look perfect. Drat. I removed "#FileNumber" from the print command within the conditional. The output to the screen was perfect! I removed the "#" and got perfect output to the screen, with a "1" at the beginning of every record. I tried replacing the "FileNumber" variable with "1", and...
  3. ShaneSQ

    "Bad file.." when creating interface file with Macro-derived Fields

    Hi Charles, I went through them all, and the only fields that cause the error are Macro-derived fields, any of them. I tried Printing a macro-derived field result outside of the loop, right after the "GetRandom 1", and it gave the same error. Are you supposed to be able to deal with...
  4. ShaneSQ

    "Bad file.." when creating interface file with Macro-derived Fields

    Hello hello, I went to run a macro to produce a csv file like normal and I got a "Bad File name or number" error, and the file was only created with the headers. the macro is as follows: Option Explicit Sub ProbToCSV() Dim today as string today = format$(Date$, "medium date") Dim Filename...
  5. ShaneSQ

    "<Error>" result of simple Macro-Derived field- what's wrong?

    Ok, so the Field "TERMINATIONDATEROE" can't just be included "For Query Only".... Problem Solved.
  6. ShaneSQ

    Capping a derived Field

    Please post your derived fields, so we know what we're dealing with. thx
  7. ShaneSQ

    "<Error>" result of simple Macro-Derived field- what's wrong?

    ... I've also just tried: If (IsNull(Field("TERMINATIONDATEROE")) = (-1)) Then DerivedField "-" Exit Sub End If at the very beginning of the macro, with the same result.
  8. ShaneSQ

    "<Error>" result of simple Macro-Derived field- what's wrong?

    Hello all! (RS V4.2, ADP SQLBase) I have a simple Macro-Derived Field to format termination dates into the "Medium Date" format. The code is as follows: Sub TermDate2() Dim TermDt TermDt = Field("TERMINATIONDATEROE") Dim TermDt2 as string TermDt2 = Format$(TermDt, "Medium Date") DerivedField...
  9. ShaneSQ

    SaveReport Command: How to Include headers in saved file?

    oh man. I'm using the Code in that PowerPoint for EVERYTHING now! I'm making the files .csv, and linking it to after report run. Now i can open the report, close reportsmith, and the data I want is in a tiny CSV file, where I want it. I'll never have to open an excel-formatted report from...
  10. ShaneSQ

    SaveReport Command: How to Include headers in saved file?

    Thank you for the PPS, That gives me some ideas about using ReportBasic to create other files, record-by-record. I've stuck with the SaveReport command in my ReportBasic macro, and just added the Header fields to each record(in the body of the report). It turns out that with those fields...
  11. ShaneSQ

    SaveReport Command: How to Include headers in saved file?

    The SaveReport command doesn't include Headers when it saves the report. Is there a way to include the headers, like it does when you save as excel to the Catalog? Thank you!
  12. ShaneSQ

    Macro command: SaveReport - syntax error

    I want a macro to save the report as an excel file but when i test the macro, it tells me there's a syntax error on the SaveReport line. My macro script is as follows: Sub saveasexcel() Dim Sitenm as string Dim Filename as String Dim Num as variant Sitenm = Field("site") Filename =...
  13. ShaneSQ

    Selecting paydates between macro-derived fields

    Sorry, that was unclear. I want to select for checkview paydates between the dates 3 days before the report is run to three days after the report is run. So far I have Macro derived fields which return the date of 3 days previous to the report's run-date, and three days after. I have tried...
  14. ShaneSQ

    Selecting paydates between macro-derived fields

    I have two derived fields which return strings containing the date three days prior to the current date and three days after the current date. they are strings in the format that the Selection criteria uses when it's in SQL. I have linked the macros to Before the report opens, but I still get...
  15. ShaneSQ

    Keeping Employees in an accumulator report

    Shoot! Of course! Thanks for your help, that solved it.
  16. ShaneSQ

    Keeping Employees in an accumulator report

    Thanks for your time, I don't understand what you are saying about the file_nbr and PAYGROUP, I can't find this field or table (but I now suspect it's neither!). Please alleviate my curiosity if you can. The "Include Unmatched Records" thing sounded very promising, but alas, yeilded no change...
  17. ShaneSQ

    Keeping Employees in an accumulator report

    SO I'm writing a report that needs to list all my terminated employees,(selected FOR in the selections) and tell me whether they have any thing accumulated in a couple of accumulators. I notice that the link: V_EMPLOYEE.FILE# = V_YTD_ACCUMULATOR.FILE# Causes those employees with nothing in...

Part and Inventory Search

Back
Top