Search results

  1. H

    Linking Access to SharePoint folder

    Hi, I wonder if this is possible and if someone can advise? My database generates pdf reports to a folder that syncs through OneDrive to a SharePoint folder. On SharePoint, the pdf is electronically signed and moved to a second folder, where it is synced back to a second folder on OneDrive...
  2. H

    Union for <All>

    Thank you for this alternative, much appreciated!
  3. H

    Union for <All>

    Wow, brilliant, thank you! I would not have solved this ever! Much appreciated. Harris
  4. H

    Union for <All>

    Hi, I hope someone can assist I want to include a "catch-all" in the recordsource for a combo box. This works for an Access based table: SELECT DISTINCT rBST.Received_Date FROM rBST UNION Select "All" From rBST ORDER BY rBST.Received_Date DESC; However, when creating the table in SQL, I am...
  5. H

    Running vbs script from Access

    Excellent, worked like a charm. Syntax is obviously everything! Thank you very much for your help. Much appreciated
  6. H

    Running vbs script from Access

    The .bat file is in my CurrentProject.Path I have accidentally found this to work! shell "cmd /c ""H:\My Documents\AccessDatabases\UpdateDB.bat""", vbNormalFocus However can you advise on how to change the path using CurrentProject.Path? I have tried various ways and simply cannot get the .bat...
  7. H

    Running vbs script from Access

    Used these: Call shell(Environ$("COMSPEC") & " /p H:\My Documents\AccessDatabases\UpdateDB.bat", vbNormalFocus) Dim RetVal RetVal = shell("H:\My Documents\AccessDatabases\UpdateDB.bat", 0) Neither worked
  8. H

    Running vbs script from Access

    Hi, hope someone can help! I trigger a vbs script (update.vbs) when a form closes, which is meant to trigger a batch file (update.bat). The reason for doing it this way is to keep the process hidden. I have included text messages in both when testing to ensure that each works. When I trigger...
  9. H

    Query for last date of purchase order

    Worked perfectly, thank you.
  10. H

    Query for last date of purchase order

    I think I have worked it out! Thanks, let me check the results
  11. H

    Query for last date of purchase order

    Thank you. I am not sure how one would do this (I am not an programming expert!)
  12. H

    Query for last date of purchase order

    I hope someone can help. I have a table with among other the following fields: Customer_ID and Customer. I have a second table with among other these associated fields: Customer_ID and Ordered_Date. So this second table may have the following entries: Customer_ID and Ordered_Date 112...
  13. H

    Microsoft Access - sort by year-week

    Thanks for your input. Unfortunately partly works. The year is the problem, i.e., last year is at the end ElisaLCMS_Union ElisaLCMS_Union Week Week 20212 02 20213 03 20214 04 20215 05 20216 06 20217 07 20218 08 20219 09 202110 10 202111 11 202112 12 202113 13 202114...
  14. H

    Microsoft Access - sort by year-week

    This does work! Fantastic! Thank you.
  15. H

    Microsoft Access - sort by year-week

    Thanks but that does not work: Week 202110 202111 202112 202113 202114 20212 20213 20214 20215 20216 20217 20218 20219
  16. H

    Microsoft Access - sort by year-week

    Can anyone help please? I have a group by query and trying to have the result sorted by year-week. Tried Val(Right(Format$([Order_received],'yyyy/ww'),Len(Format$([Order_received],'yyyy/ww'))-5)) If my query tests for the date range from Nov 2020 till May 2021, if I sort by week only, then last...
  17. H

    Compose If statement with fields from recordset

    Thanks for all the input, much appreciated. I will test by changing debug.print to something like A=2 and testing, but suspect that theDBguy's advice is probably most appropriate. I appreciate that one can have this work using very complex methods but I do not want to go there! I was...
  18. H

    Compose If statement with fields from recordset

    Thanks for the link. My question is not based on the logic, but how does one construct a dynamic IF-Then statement with a variable number of AND variables, and that will execute correctly when constructed.
  19. H

    Compose If statement with fields from recordset

    Thanks for your quick responses. I hope that this is clearer. I have an IF statement that checks to see whether a field value in a record is NOT = 'A' and NOT = "B" and NOT = "C", and if true, will update another field. At present the values "A", "B" and "C" are coded into the IF statement. I...
  20. H

    Compose If statement with fields from recordset

    Hi, I wonder if anyone can help please. I have the following statement: If rsAct("InvoiceLine_ItemRef_FullName") <> "Discount" _ And rsAct("InvoiceLine_ItemRef_FullName") <> "URGENT" _ And rsAct("InvoiceLine_ItemRef_FullName") <> "Courier" Then...
Back
Top Bottom