chuckcoleman
Registered User.
- Local time
- Today, 08:13
- Joined
- Aug 20, 2010
- Messages
- 380
I was observing a user of the db I built and saw something I didn't consider. I'm using Office 365 for Business and the Access front-end connects to SharePoint lists. The user clicks on a command button which starts vba code to do several things and towards the end, runs an append query. The user or I didn't notice the small notification in the bottom right corner of Access that the SharePoint connection was off-line. After clicking the command button she got an error message, which I had never seen in my testing because I hadn't lost my connection, so, she tried the command button again. That ran the append query again which resulted in duplicated records. Note, this table should be able to accept duplicates. It's a table for entering payments and partial payments are typical with a final payment later.
Therefore, I need to use some vba code to determine if the connection to SharePoint is down. If it's down, I can then stop the vba code. Any ideas?
Therefore, I need to use some vba code to determine if the connection to SharePoint is down. If it's down, I can then stop the vba code. Any ideas?