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

    How to start counter at 0001

    Thanks I appreciate your help, where do I place this?
  2. nunan

    How to start counter at 0001

    Hi Thanks for the reply. I have tried this in the tables and forms associated with the action but it doesn't work. The data is entered through a form, when the members name is added, it takes an operator of 'mem' and adds the next available number from the counter table creating a full...
  3. nunan

    How to start counter at 0001

    Hi I have used the following code for a number of years with no issue an initially, the data for this database was imported from excel with unique ID numbers already listed so I just had to set the counter to carry on from the last ID number which was over 1000. However, I am creating a new...
  4. nunan

    Problem with SQL displaying the data I want

    Hi PHV Thanks for your quick response. I had to change it slightly but this seems to be working perfectly now (fingers crossed), thank you sooooooooooooo much that has been driving me mad, I can now sleep!!! SELECT Reg, Colour, Model, ChargeGroup FROM TblVehicles WHERE Reg Not In (SELECT Reg...
  5. nunan

    Problem with SQL displaying the data I want

    Hi PHV I wonder if you can help with this please? When you originally answered my problem, I changed the code slightly so that dates could be entered through a form so I have the code below: SELECT Reg, Colour, Model, ChargeGroup FROM TblVehicles WHERE Reg Not In (SELECT Reg FROM...
  6. nunan

    Date gets converted to binary in make table query

    That worked perfectly and I learnt something new, thanks!
  7. nunan

    Date gets converted to binary in make table query

    Thanks PHV, I will try it later
  8. nunan

    Date gets converted to binary in make table query

    Ah sorry, my mistake! I have a field in a query who's criteria requests a date: Between [Enter Start Date:] And [Enter End Date:] Then I have 2 expressions in the same query which grab the dates entered and insertit them into new fields: PeriodStart: [Enter Start Date:] PeriodEnd: [Enter...
  9. nunan

    Date gets converted to binary in make table query

    Hi Can anyone help me please? I have the following expression in a make table query to return the required date. However, when the date is inserted into the table, the data type becomes binary which means I cannot append it to a field in an existing table which has a DateTime data type. Ch2...
  10. nunan

    Query calculation with negative value

    Perfect as usual! thanks PHV
  11. nunan

    Query calculation with negative value

    Hi there Could someone please tell me what I am doing wrong? If have 3 fields in a query that calculate values from various different places, then I have a fourth field that make a final calculation based on the values from the previous 3 fields. The problem I am having is that one of the 3...
  12. nunan

    Populate form based on listbox running from SQL

    Hi Could anyone offer some help please? I have a form FrmReservations. On this form is a listbox AvailListBox running an sql query which finds data from 2 tables TblVehicles and TblReservations based on a date range which is in a subform FrmReservationDates. The sql for the listbox is: SELECT...
  13. nunan

    Problem with SQL displaying the data I want

    PHV you are a genius, thank you very much.
  14. nunan

    Problem with SQL displaying the data I want

    Thanks PHV I will have at look at this tonight and let you know.
  15. nunan

    Problem with SQL displaying the data I want

    I have tried changing the join type a couple of times: This one doesn't make any difference: SELECT DISTINCT TblVehicles.Reg, TblVehicles.Colour, TblVehicles.Model FROM TblVehicles LEFT JOIN TblReservations ON TblVehicles.Reg=TblReservations.Reg WHERE (((TblReservations.ResStartDate) Not...
  16. nunan

    Problem with SQL displaying the data I want

    Hi I tried OUTER JOIN but got the following error: Syntax error in FROM clause??? Leslie - I have read the aricle suggested but still can't seem to get this to work, I either get errors on the FROM clause or the JOIN clause. Any ideas please??? Thanks
  17. nunan

    Problem with SQL displaying the data I want

    Hi Could anyone help please? I have 2 tables: TblVehicles Reg (pk) Model Colour TblReservations ID (pk) Reg ResStartDate ResEndDate The tables are joined by the reg fields. I have an unbound list box and the row source is the following SQL which mainly works great: SELECT DISTINCT...
  18. nunan

    How to find records that do not fall between specified dates?

    Yeah thanks, I was putting Is Not Between originally!!! Thanks
  19. nunan

    How to find records that do not fall between specified dates?

    I managed to work this out myself, thanks anyway x
  20. nunan

    How to find records that do not fall between specified dates?

    Hi Would someone kindly help me with this query problem please? The records in my table have a start date and end date as if they are reserved for a period of time. What I want to be able to do is query the table to only show me records that are not reserved between the dates I specify. For...

Part and Inventory Search

Back
Top