Recent content by 109bow

  1. 1

    send an email using recipients from a query

    I have a query which I need to email in an excel format to a changing list of recipients. The recipients are held in a query "email_lastturndata_qry" using the field "email_address" for the recipient email addresses. I have this code so far, Private Sub emailpostturndiameters_Click()...
  2. 1

    Adding autonumber to a table

    Pat thanks for the reply. I have looked at your code and to be honest it’s pretty much witchcraft to me. It seems I am still grappling with the basics of dB design!
  3. 1

    Adding autonumber to a table

    Thank you for taking the time to reply. My database did appear to be working how I wanted, but someone came up with a suggestion to improve data input that has meant the need for the joining of the two tables into one. For the time being I have used the following code: Function Resetno()...
  4. 1

    Adding autonumber to a table

    CJ_London, the Excel file contains new and amended to existing records. As I say I'm still learning Access, would an update table allow addition of new records and the modification of existing records?
  5. 1

    Adding autonumber to a table

    Thanks Pat for your reply, I'm an absolute novice with code, but will attempt to use your code.
  6. 1

    Adding autonumber to a table

    I agree its seems a very convoluted way about things, but as I'm still a novice to Access it seems to work for me. table1 is the result of an imported Excel file and table2 is one where records can be added and mended. They are then brought together to give a complete history of all train wheels...
  7. 1

    Adding autonumber to a table

    I have two tables, which are joined by a union query. This is then appended to another an other table, called joined_data_tbl. Before appending the data from the union query, I run a delete query to delete all the records from joined_data_tbl, this is because some of the data in the original two...
  8. 1

    Problem using DMax with other criteria

    gpgb, thanks for your interest. I have now managed to resolved the problem by attacking it in different manner.
  9. 1

    show whos got an Excel file open

    Unfortunately arnelgp, there is no chance of being able to modify the excel file to .xlsm, as I say I'm stuck with what I've got. Thanks
  10. 1

    show whos got an Excel file open

    we don't have access to the server name, it could be opened on several machines by a minimum of 5 users. we can only see the path as F:\....etc we tried running the code but it keeps stumbling at For Each objRes In objFS.Resources when you try to open excel manually, it says to us...
  11. 1

    show whos got an Excel file open

    Thanks arnelgp, problem is I haven't made it clear I'm doing this in Access, so your code stops part way through, Public Function WhoHasLockMyFile(serverName As Variant, fileFullPath As String) As String Dim varServer, varFile, objFS, varFoundNone, objRes Dim FindPos As Long ' first, get the...
  12. 1

    show whos got an Excel file open

    Unfortunately I cannot do anything with the source excel file, Burst Report and have to work with what there is.
  13. 1

    show whos got an Excel file open

    NauticalGent, thanks for your comments. I feel I may not have explained my situation clearly enough. I get the mileage, km, from the excel file Burst Report and using an Append query it is added to a table, as you suggest. The problem is, if the Burst Report is already open by another user on...
  14. 1

    show whos got an Excel file open

    I have a form that on open checks whether an Excel file on the server is open or not, be fore certain other functions occur. If the file is open I get a message, if the file is not open then the queries run. What I would like is to know who has the Excel file open. Can this be written into the...
  15. 1

    Error handling

    Hi All, I have a linked table to an Excel file held on the company server. When I open a specific form, I have a delete query that deletes the contents of my table kmnow_tbl and then I use an Apppend query to update the table kmnow_tbl. The kmnow_tbl stores the current mileage for each train in...
Top Bottom