Recent content by IannWard

  1. I

    Delete query help, example attached

    Worked a treat. Thank you very much indeed.
  2. I

    Delete query help, example attached

    Hi Colin That is fantastic, you have saved me a huge amount of time, it would have taken me an age to figure that out, I am getting better at queries but not the complicated ones like these. However.. I ran the last query to delete the 18 records but I get the error message 'Could not delete...
  3. I

    Prevent toggle true if another field is empty

    how do I stop people clicking a toggle button to false if another field in a form is empty? Thanks
  4. I

    Delete query help, example attached

    Hi Again If you look in the TC51 Faults table I attached, you will see that devices have a different asset tag number, so in the table, there are several devices from the same returning store. See 4 lines below, these are just one of the dups, all is same except ID. I did try a composite...
  5. I

    Delete query help, example attached

    Hi Thanks for the help. The query was supposed to return results based on all fields been the same, so every field duplicated. It may be that when someone submits an update to the original data in the main table that that particular field isn't copied to the new table, hence it just adds the...
  6. I

    Delete query help, example attached

    Many thanks for the quick response. It doesn’t matter about the primary key because this table has no relationships, it is simply used to get stats for an excel report. Regards
  7. I

    Delete query help, example attached

    Hi All In my example db I have created a query that looks for dups in a table and copies the results to a new table. Is what I am trying to do is delete all the dups except 1 from the main table. It was suggested to do it this way then create a delete query to delete all the entries in the...
  8. I

    Delete query based on data from another table

    Hi Again I can't remove the date as this is needed to get stats based on month etc. Not quite sure what a Boolean is. Newby still, although looking for a good access book to read. Regards
  9. I

    Delete query based on data from another table

    I did have more than one field selected in the index, so a composite it was. Still not solved my problem though. Back to the Delete query then. Help appreciated with delete query as mentioned in earlier post. Regards
  10. I

    Delete query based on data from another table

    Hi Again Not sure what you mean by composite (still learning, the hard way). I did create an index in the table and it worked fine, it blocked the dups as expected, the problem is that every time the team over click the submit button, thus trying to create a dup, I get a popup error message...
  11. I

    Delete query based on data from another table

    Hi Thanks for your response. The table was created to monitor specific faults of returned devices and keep a total of each fault. Lets say a device comes in in Jan with a fault, that fault and date is recorded in the table against that device (asset No). Now, 3 months later the same device...
  12. I

    Delete query based on data from another table

    Hi All I am trying to delete dups from a table whilst leaving one entry. I have created a query to find the dups and then copy them to a temp table. This shows me one of each dup in the table. I am now trying to create a delete query using wizard (not sql) to delete the dups in the main table...
  13. I

    Open report based on Asset Number in form

    Many thanks for your time. That was exactly what I was looking for, just wasn't sure of the Criteria bit (still learning). One more question though, I click my button and the report opens but it opens in a new tab, I have to close the report to get back to my original form. Is there a way to...
  14. I

    Open report based on Asset Number in form

    Hi All I have a form that I use to search and modify asset info. If I for example search for the asset 01234567, the form is populated with the current table entry for that number. Is what I want to do is add a button to the form that when clicked will run a query and then show a history...
  15. I

    Best practice for saving Form data to 2 tables.

    Hi All. I have an asset tracking database. Table 1 is used for tracking asset information and is often edited using a search form and submitting any changes. I want to create another table so I can keep a count of asset faults. As the Faults field in table 1 changes as and when a device is...
Top Bottom