I have a macro that goes through each name that is stated in the sheet and does a bunch of calculations etc...
Now I would like to create a log that will save a line per name that was run. The only issue is that this macro is run by multiple users at the same time so I need a way to ensure that all lines are recorded.
I need to store only three things for each name it runs: name, username (computer name), date/time
the flat file will be ultimately used by another process done through the access database.
My biggest concern is if say two users are using the macro at the same time, how do i ensure that both macro's values are saved into the flat file? Also what would be the most efficient way to save these lines into a text file?
Please let me know if you need clarification. Thank you!
To take what armchair_scouse has stated a step further, why not think about just writing the log data straight into Access instead of having an intermediate step. If you can't have the data stored into
Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability.
Flipping Coins in Excel: Enter =RAND() into cell A2:
Recalculate the random variable…