lexi0088
Technical User
- Sep 7, 2004
- 49
I am fairly new to access and I am trying to create a database for our company and this website has provided me with awesome solutions to many of my problems... but I can't quite solve this one from previous posts.
OK, I have a command button on my form which opens a chosen excel file and imports the info into a table. However, this file has a lot of data that is not usefull, so the table has a lot of column in it that do not need to be in my form.
My form has a datasheet subform in it which contains fields NDC\Quantity\Amount\Item credit and saves this into a table that is linked to my main form. I would like to create some code in VBA(within my command button) which goes to the import table and pulls out the columns containing the fields above and automatically filling the info into my subform.
Here's where I run into a problem.... I have to link it to the command button because there will be two ways to fill in the information into my form.... manually and through an excel file (when available).
Any suggestions would be appreciated.
Thanks
OK, I have a command button on my form which opens a chosen excel file and imports the info into a table. However, this file has a lot of data that is not usefull, so the table has a lot of column in it that do not need to be in my form.
My form has a datasheet subform in it which contains fields NDC\Quantity\Amount\Item credit and saves this into a table that is linked to my main form. I would like to create some code in VBA(within my command button) which goes to the import table and pulls out the columns containing the fields above and automatically filling the info into my subform.
Here's where I run into a problem.... I have to link it to the command button because there will be two ways to fill in the information into my form.... manually and through an excel file (when available).
Any suggestions would be appreciated.
Thanks