Recent content by mackyrm

  1. M

    comparing two queries for multiple matching data

    Query 1 output, client skills, looks like this CLIENT | SKILL --------- ----------- Joe Bloggs | Psychology Joe Bloggs | Biology Joe Bloggs | Public Speaking Jane Smith | Biology Jane Smith | Biochemistry Jane Smith | Media Jane Smith | Public Speaking...
  2. M

    comparing two queries for multiple matching data

    I have two sets of queries. A client query that lists the client and their skills (a client can have several lines as the skill comes from a child table where the client is in the parent table). I have a job query, that lists employers and the skills that they are looking for (employer = parent...
  3. M

    Using DateAdd and then setting criteria on the DateAdd values

    What I am trying to achieve is the addition of one hour Minty (SQL is taking them one hour back from 00:00:00 to 23:00:00 the previous day, in BST). I can make the 1 hour addition in a query and bring the date back to what it is supposed to be in reporting, but they are not searchable in the...
  4. M

    Using DateAdd and then setting criteria on the DateAdd values

    Thanks Minty. It must be date and time I guess behind the interface for the field, if it recording it as such, but the form is asking only for the date. I suspect the system is defaulting the date time to [date] 00:00:00 (I can't put in the time). In the CRM it is visible as the correct date in...
  5. M

    Using DateAdd and then setting criteria on the DateAdd values

    Hi Minty, Yes, the Access database is read only access. We are only reporting from it, not populating it. The application that uses the SQL Server to populate it, accounts for this time differential. I do not have access to change that application.
  6. M

    Using DateAdd and then setting criteria on the DateAdd values

    Thanks for the reply. If you look at the first post, it provides an example of a contact > product relationship that I recreated in Access (to test in). One to many. The fields are date fields.
  7. M

    Using DateAdd and then setting criteria on the DateAdd values

    Apologies for the delay. What I am trying to do is create a query in Access, linked to an SQL server back end. The date is changed due to BST in SQL Server (I am unable to change how dates are stored in the original database). By one hour. 01/06/2016 in the original application using SQL...
  8. M

    Using DateAdd and then setting criteria on the DateAdd values

    Thanks Minty and Jdraw, here is the output from the debug mysql on the where statement WHERE ( ((Product.Name) Like '*Product*') AND ((DateAdd("h",1,[Product].[startdate]))>=#08/01/2016#) ) (date is greater than 1st August - referencing SQL Server dates and these are in the US date format)
  9. M

    Using DateAdd and then setting criteria on the DateAdd values

    I'm getting a syntax error with single quotes.
  10. M

    Can you qury on a query in VBA and filter in the VBA for a cleaned up output?

    Thanks Minty, I will give this try.
  11. M

    Can you qury on a query in VBA and filter in the VBA for a cleaned up output?

    Can you query on a query in VBA and filter in the VBA for a cleaned up output? If anyone can advise with a VBA-SQL example, appreciated. Thanks.
  12. M

    Using DateAdd and then setting criteria on the DateAdd values

    Thanks for the reply Minty. I can't even get this working in an access query at the moment connected to SQL Server. The VBA takes into consideration the date formatting and has the # symbols around the dates e.g. mySQL = mySQL + vbCrLf & " (DateAdd(""h"",1,[product].[startdate]))>=#" &...
  13. M

    Using DateAdd and then setting criteria on the DateAdd values

    I would just add that I have tried this in Access (with access tables) with # around the dates and it works correctly, but I am actually connected to a SQL Server backend in my live database, and it doesn't work there. Adding # in the search criteria gives 0 results back.
  14. M

    Using DateAdd and then setting criteria on the DateAdd values

    Hi, I am trying to query on a DateAdd column that I am creating in a query. It is returning data but the dates don't match with the criteria I am trying to pull out of the database. I am getting results on all 'product one' entries. I am running this in a VBA statement to dynamically create...
  15. M

    Access with SQL server, VBA and uk and US dates

    Thank you for this. Formatting input into the US format before comparison worked.
Back
Top Bottom