Hey. I have been working with basic Microsoft Access for many years, creating basic forms, tables, queries, and reports. But I don't know how to do something that keeps coming up again and again - making a default value through coding.
What I have done for years is create a form that had a bunch of unbound text fields on it asking for the user to enter default values when the access database starts. Then, I would have a button that would hide the form, but it was still open, and whenever I needed a default value, I would refer to the unbound textbox object on the hidden open form.
I am sure there is a better way to do it, and would love to learn how to do it. Is this something I would use a module for? Basically I want to have a form that a user can set all sorts of defaults, and then whenever I need the default filled in for a new record, it would refer to the code instead of the hidden form that I currently do.
Is there a better way to do this? If so, could someone enlighten me on how to do this? Thanks in advance.
What I have done for years is create a form that had a bunch of unbound text fields on it asking for the user to enter default values when the access database starts. Then, I would have a button that would hide the form, but it was still open, and whenever I needed a default value, I would refer to the unbound textbox object on the hidden open form.
I am sure there is a better way to do it, and would love to learn how to do it. Is this something I would use a module for? Basically I want to have a form that a user can set all sorts of defaults, and then whenever I need the default filled in for a new record, it would refer to the code instead of the hidden form that I currently do.
Is there a better way to do this? If so, could someone enlighten me on how to do this? Thanks in advance.