Search results

  1. N

    Working with dates in queries

    Thanks a lot Jon
  2. N

    Working with dates in queries

    I have set up an Attendance database at work, where a record is created for each member of staff when they are absent. The tables are set up as follows: [tblStaff]: StaffID, FirstName, Surname, Team, JobTitle [tblAbsence]: StaffID, StartDate, EndDate, Issue What I want to be able to do is set...
  3. N

    Incorrect Information

    Sorry forgot to say. Yeah I've sorted this out. Thanks for any help you gave
  4. N

    dialog box to filter report

    Thanks for getting back quickly Ken, but I've sorted it now. thanks for your help
  5. N

    dialog box to filter report

    as far as you can see though is the code written correctly?
  6. N

    dialog box to filter report

    as far as I can see the code is fine. I have had this code working on a different report and have just changed the field and report names but for some reason the pop ups asking for the parameters occur on this one
  7. N

    dialog box to filter report

    I've had a look at this and can't see what I'm doing wrong. I have tried this for a seperate report and the same thing is happening. The code for this one is: Option Compare Database Option Explicit Private Sub cmdApplyFilter_Click() Dim strTeam As String Dim strWorkStream As String...
  8. N

    Incorrect Information

    I have set up 2 queries which are working correctly. The problem is when I try to combine them it brings back incorrect information. The 2 queries that work correctly are set up like this Query1: SELECT Projects.[Work Stream], Count(Poles.[New Pole No]) AS [CountOfNew Pole No]...
  9. N

    calculation in a query

    thanks for the reply
  10. N

    calculation in a query

    Thanks for replying. I did this before posting but the calculation is coming through incorrectly. The Total cost is found by adding 2 field together i.e. Total Cost:[Material Cost]+[Labour Cost] Is it something to do with trying to do a sum function on a field that contains a calculation
  11. N

    calculation in a query

    I have a query that is built up of 5 fields with only the 2 below being visible. I am wanting to be able to calculate the total price for each pole no i.e. Pole no 01-02 total price would be £1441.79, What is the best way to do this? Sample data is shown below New Pole No Total Cost 01-02...
  12. N

    Calculations in a query

    The idiot has worked it out, but thanks for looking
  13. N

    Calculations in a query

    Hi, firstly I just want to put I'm a beginner in SQL so don't laugh too loud when you read this. I have a query that takes two field sfrom seperate tables. Lets call the fields X and Y. The X field contains an ID number (there are 6 possible instances) which can be duplicated many times. The Y...
  14. N

    dialog box to filter report

    Thanks for replying Ken but unfortunatly this doesn't work
  15. N

    dialog box to filter report

    I have set up a report called rptAbsence, and also a dialog box called frmAbsenceFilter. This dialog box is a form containing a combo box and 2 command buttons (apply and remove). The combo box comes from a table called[Issues]. The problem I'm having is when I apply the filter a box pops up...
  16. N

    Using sub-forms

    thamks sergeant
  17. N

    Using sub-forms

    I have 2 tables for an attendance database. The idea is that whenever someone is absent they have a record created. tbl[Staff] has the following fields StaffID,FirstName,Surname,Team,Job Title tbl[Absence] has the following fields StaffID, abStartDate,abEndDate,abIssue I have set up a form for...
  18. N

    Adding single record

    thanks have it sorted now
  19. N

    adding a single record

    I have 2 tables and a query to show the details of both tables on a form for an attendance database. The idea is that whenever someone is absent they have a record created. tbl[Staff] has the following fields StaffID,Name,Team,Job Title tbl[Absence] has the following fields StaffID...
  20. N

    Adding single record

    I have 2 tables and a query to show the details of both tables on a form for an attendance database. The idea is that whenever someone is absent they have a record created. tbl[Staff] has the following fields StaffID,Name,Team,Job Title tbl[Absence] has the following fields StaffID...
Back
Top Bottom