I have a database for log keeping. I've created popups to remind users when it is time for an entry.
*The actual reminders have been edited and truncated - code above is just to show how it's set up
The commented lines were added when I first set it up. The thought process was that if the Daily Routine was ever edited or updated then the popups would have to be edited in kind to match. I also figured that since these popups are a coded feature, that any new or modified popups would need to be created/modified from within the VBA editor itself.
This database is being built with a primary goal of being managed into the future by people that know nothing at all about Access (let alone VBA). As I've gone along in the build, I feel I've come up with some pretty solid ways to keep users in a sandbox and provide "database managers" with the tools needed to make adjustments to the database w/o ever having to enter a table directly.
And then there's these popup reminders... I can't think of a way to provide the "database managers" with a way to manage them without having to send them into the VBA editor.
Anyone have any ideas on a way to do this? Is is possible to build them a form with some underlying code that can make modifications to the existing code on another form?
disclaimer: Please don't tell me how bad of an idea it is to build a complex database and send it into the wild w/ no one to support it. I'm well aware this isn't ideal, but ideal isn't always an option. The unsupported database scenario is what started this project in the first place. A database is already in use that was built 6 years ago which nobody knows how to manage/modify. No one even knows who built it! This project will replace that one and have a ton of options built in (as many as I can think of) to allow someone with no experience to manage it into the future. I know nothing is totally future proof, but this is going to be much more "management-friendly" than what they have now.
Code:
'Popup reminders for watch entries
'------------------------------------------------------------------------------
'Update information between [ and ] for new reminders. Remove the brackets in
'completed code - see existing entries for proper syntax
'Reminder code follows:
' If TimeValue(Now()) = #[ time goes here ]# Then
' msgbox "[ reminder goes here ]", vbOKOnly, "Daily Routine Reminder"
' End If
'------------------------------------------------------------------------------
Private Sub Form_Timer()
If TimeValue(Now()) = #1:30:00 AM# Then
msgbox "Random Thing", vbOKOnly, "Daily Routine Reminder"
End If
If TimeValue(Now()) = #2:00:00 AM# Then
msgbox "Random Thing", vbOKOnly, "Daily Routine Reminder"
End If
If TimeValue(Now()) = #4:30:00 AM# Then
msgbox "Random Thing", vbOKOnly, "Daily Routine Reminder"
End If
If TimeValue(Now()) = #6:00:00 AM# Then
msgbox "Random Thing", vbOKOnly, "Daily Routine Reminder"
End If
End Sub
*The actual reminders have been edited and truncated - code above is just to show how it's set up
The commented lines were added when I first set it up. The thought process was that if the Daily Routine was ever edited or updated then the popups would have to be edited in kind to match. I also figured that since these popups are a coded feature, that any new or modified popups would need to be created/modified from within the VBA editor itself.
This database is being built with a primary goal of being managed into the future by people that know nothing at all about Access (let alone VBA). As I've gone along in the build, I feel I've come up with some pretty solid ways to keep users in a sandbox and provide "database managers" with the tools needed to make adjustments to the database w/o ever having to enter a table directly.
And then there's these popup reminders... I can't think of a way to provide the "database managers" with a way to manage them without having to send them into the VBA editor.
Anyone have any ideas on a way to do this? Is is possible to build them a form with some underlying code that can make modifications to the existing code on another form?
disclaimer: Please don't tell me how bad of an idea it is to build a complex database and send it into the wild w/ no one to support it. I'm well aware this isn't ideal, but ideal isn't always an option. The unsupported database scenario is what started this project in the first place. A database is already in use that was built 6 years ago which nobody knows how to manage/modify. No one even knows who built it! This project will replace that one and have a ton of options built in (as many as I can think of) to allow someone with no experience to manage it into the future. I know nothing is totally future proof, but this is going to be much more "management-friendly" than what they have now.