I have a data base used to monitor and track licenses...several hundred. On occasion we will be sent a spreadsheet of data. Sometime there will be several tabs to the spreadsheet. I have VB in my data base that will import the data from each tab of the spreadsheet and save it as a table with the tab name. This works very well.
I then need a Form for each table. This is also done with the same VB that is importing the data.
Next, I need a Report for each imported table. This is where the problem occurs. I should explain here that the data on each tab of the spreadsheet can be from 16 to 20 columns wide. When I use the command to create an AutoReport based on the table the resultant is missing data. The AutoReport will not show all columns...I am guessing it cannot fit them all on a 21" wide report.
So, I created, manually, the report I need including the controls. I then removed the record source property and saved the report as template named TempRpt.
Now back to my import code. I want to create a report based on the new table/s and based on the TempRpt. All the controls will be of the same name. But, I can't put it all together. I know there is a way to Change the Record source of the report but I can't make it work. Then I would open TempRpt, (not visable), and save it as the Spreadsheet Tab/Table name. Remember, this is all happening based on code attached to a buttons click event.
By the way, the template (TempRpt) I made will actually print all 16 to 20 columns on an 11 X 17 sheet of paper. Also, note, the difference of the column counts will lead me to have several report templates and several Spreadsheets setups. I can handle this.
Help!
JJSAccess and thanks in advance.
I then need a Form for each table. This is also done with the same VB that is importing the data.
Next, I need a Report for each imported table. This is where the problem occurs. I should explain here that the data on each tab of the spreadsheet can be from 16 to 20 columns wide. When I use the command to create an AutoReport based on the table the resultant is missing data. The AutoReport will not show all columns...I am guessing it cannot fit them all on a 21" wide report.
So, I created, manually, the report I need including the controls. I then removed the record source property and saved the report as template named TempRpt.
Now back to my import code. I want to create a report based on the new table/s and based on the TempRpt. All the controls will be of the same name. But, I can't put it all together. I know there is a way to Change the Record source of the report but I can't make it work. Then I would open TempRpt, (not visable), and save it as the Spreadsheet Tab/Table name. Remember, this is all happening based on code attached to a buttons click event.
By the way, the template (TempRpt) I made will actually print all 16 to 20 columns on an 11 X 17 sheet of paper. Also, note, the difference of the column counts will lead me to have several report templates and several Spreadsheets setups. I can handle this.
Help!
JJSAccess and thanks in advance.