Your sample did the trick. Thanks again.
Glad to be of help.
I would suggest making tblStore lng1, lng2, lng3 number data type for consistency. Also perhaps a descriptive label on the forms- especially frmCreateData. eg " this form populates all 3 level tables with data. Otherwise, must enter data directly into tables."
I will try to incorporate your suggestions.
What is the site protocal on using your code in my application? After your great help, don't want to slight anyone.
I appreciate your thoughtfulness! There really isn't anything in the code that is unique. It's more of an example of
- how I would
create cascading comboboxes
- how I would bind them to a field
- and how I use the AfterUpdate and Form_Current events to ensure that any changes in "higher" lever comboboxes affect the "lower" level comboboxes
That being said, if you wanted to include a comment in your code stating that your code is derived from an example from
http://AccessDB.info as well as a link to the
original article, I would not be opposed to the idea.
But really, that is entirely up to you. If it was a custom function I created that you intended to use, then I would ask that the header comments are left with the function in order for some recognition as well as providing a way for someone to contact me with any problems or suggestions regarding the function.
Of course, there isn't anyway to check that no one is claiming my work as their own or much less to enforce it, especially seeing as my code is available for free on my website. Also, I don't know if it is even possible to copyright code. If it is, it would probably be hard to enforce.