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 SkipVought 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: KerryL
  • Order by date
  1. KerryL

    Runtime error 94: Invalid use of Null

    I've been asked to look at this problem in a fairly complex database that I didn't write. Apparently this is the first time in 2-3 years this process has produced an error. Not being very strong with code, I thought I'd post this to see if you coding wizards spot something obvious. For j = 1...
  2. KerryL

    Report control source: tbl or qry?

    Wow, I looked right at that and had a brain fart. Didn't even register that you were talking about the report header/footer instead of the Page Sections. I apologize for missing that. Also, I wasn't aware that you can't bind expressions in the Page Sections. I moved my fields to the Report...
  3. KerryL

    Report control source: tbl or qry?

    Sorry, I thought I covered everything. 1) does your report have a Record Source of your table/query? Yes, it is table "tblWARNData" 2) did you move the text boxes to the Page Footer or Report Footer? Page Footer 3) can you share any expressions you used in control sources? Expression for...
  4. KerryL

    Report control source: tbl or qry?

    I haven't changed anything on the report. All I did was move the body of the report from the detail section to the footer section (then the header section). The same text boxes whose Expressions work in the Detail section give me an #Error in the Header & Footer secions. I also created a new...
  5. KerryL

    Report control source: tbl or qry?

    When I move the text boxes from the detail section to the footer section, or place them in the header section, they display "Error" It's as if the Expressions cannot complete their calculation because they're no longer tied to the table.
  6. KerryL

    Report control source: tbl or qry?

    The report contains items such as: - All Notices (records) received YTD - All Notices received for this period - Notices related to mass layoffs YTD & Period - Notices related to plant closings YTD & Period - Number of team interventions YTD & Period Etc, etc IOW, the items on the summary...
  7. KerryL

    Report control source: tbl or qry?

    I have a report that displays summary data from the database, and I used a data table as its source. The summary data is displayed in the Details section of the report. However, when I print the report, it prints a page for each record contained in the table, so I end up with 50 (so far) pages...
  8. KerryL

    SQL Count stmt for YTD report field

    Thanks Duane, that works great and is simpler than the expression I was using. If I want to use a second variable I would add it something like this? =Sum(Abs(Year([EntryDate])=(Year(Date())) And ([IncidType]=6))) (I have a hard time figuring out where the parens go.)
  9. KerryL

    How do I store only YYYY in =Date( ) text box?

    Randy, Wow, it worked like a charm. I would never have figured that one out. Thank you very much!! Hopefully I can adapt that expression for the other 5 "YTD" calculations I have to include on this report. If not, you may see me again... :) Thanks again, Kerry
  10. KerryL

    How do I store only YYYY in =Date( ) text box?

    I can't get an expression to work because of the way a date is being stored in a text box. txt box = frmRptCriteria.txtYYYY Its control source is =Date() It's formatted as YYYY Even though its formatted as "YYYY" it stores a full date, 3/2/2007 instead of just 2007. This causes the following...
  11. KerryL

    SQL Count stmt for YTD report field

    My summary report shows various record totals for YTD and Date Range entries. I was able to get a stmt to work for the Date Range fields, but not the YTD fields. Report field = txtNoticesYTD Source = tblWARNData This report field is supposed to show a total of all records entered in the...
  12. KerryL

    Sum records entered in CY where tbl field = 6

    Here's the code I'm using in the Control Source of the report field: =Sum(IIf(Year([EntryDate])=Year(Date()) And [IncidType]='6',1,0)) This is the error I'm getting now: "The expression is typed incorrectly, or is too complext to be evaluated. For example, a numeric expression may contain...
  13. KerryL

    Sum records entered in CY where tbl field = 6

    Thanks PHV. Unfortunately, I'm getting the same error with your code as I got with mine: Extra ) in query expression ...even though there doesnt seem to be an extra one.
  14. KerryL

    Sum records entered in CY where tbl field = 6

    I'm having trouble with a field on a report. The field needs to show a sum of the records that have been entered in the calendar year, and also have a value of "6" in one of the table fields. I wasn't sure how to make the report object know what year it is, so I thought of placing an invisible...
  15. KerryL

    Code for closing 2nd form

    I'm trying to add code to a cmd button so that it will close the active form and a second form, then return the user to the main menu. However, I'm having trouble with the argument to close the 2nd form and need help with the syntax. Here's what I have: Active form = frmReports Second form =...
  16. KerryL

    Error when printing custom form

    When I print my accounts payable checks (using a custom form I created by modifying a standard form) I receive the following error: "Warning: There was no room to store those printer setup parameters in the form file." I select "OK" and the accts payable check prints fine, so it doesn't seem...
  17. KerryL

    Trouble with inner join query for report

    Thank you both. I modified the Join Properties in my query design and now I've getting the results I expected.
  18. KerryL

    Trouble with inner join query for report

    My main data table is populated in part by a number of cbo's that pull data from a lookup table. I'm trying to build a query that will be used for a report listing all records within a date range. IOW, all I want the query to do is list all records within the date range. However, it keeps...
  19. KerryL

    Bound column number being saved to table

    Oops, I misunderstood. I apologize for my confusion. I am currently in the process of: 1. Consolidating my lookup tables into 1 table. 2. Adding a WHERE clause to the Control Source of each combo box that pulls data from the lookup table. BTW, does it matter if my main table stores the Lookup...
  20. KerryL

    Bound column number being saved to table

    Aceman, Spellbound... LOL, yeah right. ;-) The reference you supplied regarding lookup tables is pretty critical of them. However, it doesn't offer a viable alternative. If lookup tables are bad, what should be used instead to offer users a selection choice?

Part and Inventory Search

Back
Top