L
Legacy 3234
Guest
I have zero experience with Access and could use some help with a few things. If anyone has time to help and keep the explanations as simple as possible, I'd really appreciate it. (Access 97)
I've created an entry form with some combo boxes. Four of the combo boxes are synchronized and running on queries, two are not.
I want the users to select items from these combo boxes, but what I want to go into my data table are codes representing their choices.
I've gotten it to do this with one of the unqueried combos by using this
in the Row Source property for that combo box. However, I can't do that with the combos that are running on queries because they already have "qryClassList" (for example) in the Row Source property. I don't know where to begin to figure out how to get around it. I don't even know how I got that code I'm using in the first place. It just magically appeared!
I have a different problem in one of the other combo boxes. The list that feeds it has entries that begin with leading zeros. For example, "01 - Alabama". If I don't use the code above, the data I get in my output is the index number from the table the list is coming from. If I do use the code above, it won't display states that start with leading zeros in the drop-down list. Is there a way to get around that one?
I also want to prevent the user from accidentally entering a record before they're finished by locking the form somehow and having them press a button to add the new record. But I also want it to continue to display their entries until they reset the form with another button. (They'll be making a lot of entries where only one thing from the previous record will change).
Jane
I've created an entry form with some combo boxes. Four of the combo boxes are synchronized and running on queries, two are not.
I want the users to select items from these combo boxes, but what I want to go into my data table are codes representing their choices.
I've gotten it to do this with one of the unqueried combos by using this
Code:
SELECT DISTINCTROW [tblCompanies].[CompanyCode], [tblCompanies].[CompanyName] FROM [tblCompanies];
I have a different problem in one of the other combo boxes. The list that feeds it has entries that begin with leading zeros. For example, "01 - Alabama". If I don't use the code above, the data I get in my output is the index number from the table the list is coming from. If I do use the code above, it won't display states that start with leading zeros in the drop-down list. Is there a way to get around that one?
I also want to prevent the user from accidentally entering a record before they're finished by locking the form somehow and having them press a button to add the new record. But I also want it to continue to display their entries until they reset the form with another button. (They'll be making a lot of entries where only one thing from the previous record will change).
Jane