Recent content by SammyJ

  1. S

    Isolated Report Footer

    Had a quick check but couldn't find any relevant help. Anyone have a clever way of stopping a report footer from appearing on the last page by itself? Even if I just knew it was going to happen I could write code to push some data onto the last page. Sam.
  2. S

    Subreport For Multiple Users

    Glad it worked and thanks for the reply. Getting bored of writing up solutions here and never hearing whether it was useful. Or even read for that matter.
  3. S

    format font based on form date entries

    Is there a question there somewhere? Looks OK to me, except you will want to change your condition to: If [txtReportDate] >= [txtStart] AND [txtReportDate] <= [txtEnd] THEN
  4. S

    I'd like report to have "WHERE ([form field]=stuff)" popup

    Do you really then need a UNION query? Do you want different types of information of different rows? What will you be doing with the information? You are free to add WHERE clauses to your individual queries and if you need to JOIN in you main table you can do in each case. Then add a parameter...
  5. S

    Refering to a query in a report

    You can base the report on a new query which joins the table and saved query on the Last Name field. You don't even have to create a saved query to do it. The report can hold its own derived query as a recordsource. Just go to the table name in the report properties and click on the little...
  6. S

    Subreport For Multiple Users

    Let's just work with one subreport and one user. Ideally your subreport will contain data in a User field which has the name of the person able to see that line of data. So when you run it before managing to achieve your goal it will simply show all the data for Tom, Dick, and Harry. I usually...
  7. S

    page break and hasdata

    Me.pbSick.Visible is not a statement and will cause an error. You need to use Me.pbSick.Visible= True. Or instead of the whole If...Then...Else construct use: Me.pbSick.Visible=Me![rptReview].Report.HasData That's a start. Whether it will help your report is another matter. Are these...
  8. S

    reference to a fieldname fails because of quotes

    I'm not following all of this but if you don't get an answer to what is a fairly simple question, try just posing it without some of the irrelavant extras such as the API calls. If your recordset has a field called "datew" then all of rs!datew, rs("datew") and rs.fields("datew") will reference...
  9. S

    Problem with duplicates

    Why is one of those not OK, but the other is? Do you want the data to be rejected from the table when the addition attempt is made? Where did you use DISTINCT? There isn't mention of a query here.
  10. S

    Combining cross tab queries

    Have a one record table with the date in it, and link that date to the fields in the queries which need to be restricted to that date. Then set up a form to edit the date if you want.
  11. S

    where condition

    You need to build up your criteria based only on the fields where there is a value. Taking just a couple as an example I'd do this: Dim strWhere As String if len([d1])>0 And len([d2])>0 then strWhere = strWhere & " AND [Ad_Date] BETWEEN #" & Format$(Me![d1], "yyyy-mm-dd") & "# AND #" &...
  12. S

    HELP Email from Access..

    You'll have to be more specific at a guess. Have you tried debugging to see which part is failing? If so, let us know.
  13. S

    Dear All

    You are really going to have to explain that a lot more clearly and while you're at it give it a relevant subject heading.
  14. S

    Release Excel damn you

    Hey, I'm from Perth. Forget the Excel and go to the beach.
  15. S

    Release Excel damn you

    I'm a little worried though about your use of WorkBooks like that. Shouldn't you be using the Excel application object you created to reference the worksheets? So xlApp.WorkSheets... Otherwise you are referring to Access' Application object's WorkSheets property, and not the one you think you...
Back
Top Bottom