I am new to the programming, macro side of Access and need some help. I also have some problems with 2 Forms I am working with. There are a total of 4 Issues that I need help with.
I am working with 3 tables for an inventory and small business accounting program. We just added the ability to assign Product Lines to each vendor. So there is a table for the vendor contact information, a table with all of the Product Lines entered and a blank table which will hold the lists of Product Lines specific to a vendor. This has been a real challenge to get to work properly. After struggling for a grueling week to be able to get enter the data so that the new table has the multiple Product Lines for each Vendor, I was able to create 2 separate forms. One for updating and adding vendors and one for selecting the Product Lines.
Here are the issues I am experiencing:
Issue 1: Combo Boxes
Is there a way to use all the data from a combo box instead of just the one that you designate as the Bound Column?
I originally created several combo boxes to select the various pieces of information but then I couldn't carry over all the information over from the single combo box so I created many List boxes. There has to be some way to use all the data in a combo box to be stored in different fields. Below is a list of the different groups of data that I need to be able to save into several fields:
Combo Box 1: Vendor ID, Vendor Name
Combo Box 2: Product Line ID, Product Line Name
Combo Box 3: Product Line Category, Product Line Subcategory
Note: Combo Box 2 and 3 ideally could be combined if I am able to use one Combo Box that sorts out the different fields.
Issue 2: Residual Data & Losing Data
The next problem I have is in working with the forms. Currently my second form is a set of 6 List Boxes for me to choose the Vendor and the Product Lines. My problem is that after I have created one entry and saved it, all of the highlighted fields from that record are still highlighted and when I went to select the next set of data, it wrote over the fields that were highlighted.
Is there a way to reset the form so I don't keep writn over or losing data? I created a "Refresh" button that didn't do anything.
Issue 3: Problems with Coding
I have worked with this data so much that the coding is all wrong for the file. Is there a way to run a program or something to recode the file? There are 2 problems with the coding.
1. When I open the file, I get several errors stating that a certain query could not be found or is mispelled. I have deleted all the queries, tables, etc. that I was experimenting with but it seems that there is still information pointing to those queries somewhere in the code. I tried looking but can't find it.
2. After creating a combo box, list, etc. under the properties I renamed them from the standard generic names to ones I could relate to. Now I the combo boxes,etc don't work. When I pull up the codes page, everything is still using the standard names such as "Combo72". Now that I have renamed everything, I don't know what their original name was so I could change it back. Is there away to reset these codes so that they recognize the new names?
Issue 4: Protecting Data
Is there a way to protect the data that is already entered so that it can still be selected but not edited.
Note: if there is programming that I can do to resolve these issues, please be kind to give details since programming is very new to me.
Thanks so much for your help.
I am working with 3 tables for an inventory and small business accounting program. We just added the ability to assign Product Lines to each vendor. So there is a table for the vendor contact information, a table with all of the Product Lines entered and a blank table which will hold the lists of Product Lines specific to a vendor. This has been a real challenge to get to work properly. After struggling for a grueling week to be able to get enter the data so that the new table has the multiple Product Lines for each Vendor, I was able to create 2 separate forms. One for updating and adding vendors and one for selecting the Product Lines.
Here are the issues I am experiencing:
Issue 1: Combo Boxes
Is there a way to use all the data from a combo box instead of just the one that you designate as the Bound Column?
I originally created several combo boxes to select the various pieces of information but then I couldn't carry over all the information over from the single combo box so I created many List boxes. There has to be some way to use all the data in a combo box to be stored in different fields. Below is a list of the different groups of data that I need to be able to save into several fields:
Combo Box 1: Vendor ID, Vendor Name
Combo Box 2: Product Line ID, Product Line Name
Combo Box 3: Product Line Category, Product Line Subcategory
Note: Combo Box 2 and 3 ideally could be combined if I am able to use one Combo Box that sorts out the different fields.
Issue 2: Residual Data & Losing Data
The next problem I have is in working with the forms. Currently my second form is a set of 6 List Boxes for me to choose the Vendor and the Product Lines. My problem is that after I have created one entry and saved it, all of the highlighted fields from that record are still highlighted and when I went to select the next set of data, it wrote over the fields that were highlighted.
Is there a way to reset the form so I don't keep writn over or losing data? I created a "Refresh" button that didn't do anything.
Issue 3: Problems with Coding
I have worked with this data so much that the coding is all wrong for the file. Is there a way to run a program or something to recode the file? There are 2 problems with the coding.
1. When I open the file, I get several errors stating that a certain query could not be found or is mispelled. I have deleted all the queries, tables, etc. that I was experimenting with but it seems that there is still information pointing to those queries somewhere in the code. I tried looking but can't find it.
2. After creating a combo box, list, etc. under the properties I renamed them from the standard generic names to ones I could relate to. Now I the combo boxes,etc don't work. When I pull up the codes page, everything is still using the standard names such as "Combo72". Now that I have renamed everything, I don't know what their original name was so I could change it back. Is there away to reset these codes so that they recognize the new names?
Issue 4: Protecting Data
Is there a way to protect the data that is already entered so that it can still be selected but not edited.
Note: if there is programming that I can do to resolve these issues, please be kind to give details since programming is very new to me.
Thanks so much for your help.