I wasn't sure where to post this....moderators please move as necessary.
I've created a nice little app (dubbed app#1) that automatically runs via task scheduler to pull some information into a report and email it (Via VBA Code). This is scheduled to run once per week, and sends information to our customers. To date, this has shared a common back end (.accdb) with another app (I'll dub it app#2). App #2 updates our google calendar nightly with events that were entered into our SQL server based ERP system that day. It also sends 1 email if certain conditions are met.
Both Apps are set to open a form, then the forms on Load events start the code rolling. (tried an AutoExec Macro, but didn't like it)
This morning, I noticed some unintended behavior in App#2. Opened it up using shift click to bypass the opening code. checked it out and needed to run it again manually to confirm some things....When I ran it manually, App#1 fired and sent an email out to customers! :banghead:
How/Why did this occur?!? I've thought long and hard about this. I'm 99% sure the events happened as portrayed above. I also opened the backend directly however. Either way, I'm stumped.
Should I make two backends and keep them separate?
The really crazy thing is this: App#1 has code in it to prevent it from running on any day other than Wednesday. It is Monday. I even put in a breakpoint and stepped through the code to ensure that Function worked, and it did.
I'm happy to post any of this code if it will help, but it's quite long. If anyone can let me know what they'd like to see, I'll happily oblige.
I've created a nice little app (dubbed app#1) that automatically runs via task scheduler to pull some information into a report and email it (Via VBA Code). This is scheduled to run once per week, and sends information to our customers. To date, this has shared a common back end (.accdb) with another app (I'll dub it app#2). App #2 updates our google calendar nightly with events that were entered into our SQL server based ERP system that day. It also sends 1 email if certain conditions are met.
Both Apps are set to open a form, then the forms on Load events start the code rolling. (tried an AutoExec Macro, but didn't like it)
This morning, I noticed some unintended behavior in App#2. Opened it up using shift click to bypass the opening code. checked it out and needed to run it again manually to confirm some things....When I ran it manually, App#1 fired and sent an email out to customers! :banghead:
How/Why did this occur?!? I've thought long and hard about this. I'm 99% sure the events happened as portrayed above. I also opened the backend directly however. Either way, I'm stumped.
Should I make two backends and keep them separate?
The really crazy thing is this: App#1 has code in it to prevent it from running on any day other than Wednesday. It is Monday. I even put in a breakpoint and stepped through the code to ensure that Function worked, and it did.
I'm happy to post any of this code if it will help, but it's quite long. If anyone can let me know what they'd like to see, I'll happily oblige.