Hello,
I have a problem I was hoping you might help with. I have a form and subform in Access. This is for information regarding the sale of Apartment buildings. The main form has the information on the sale and buildings type, square footage, etc. The subform has the unit mix. So for example The main form (frmSalesInfo) will have:
SaleID: 100
Address : 1021 Main St.
Size: 1,023
Units: 100
Then the sub form (sbfrmUnitMix) could have multiple records for the different type of units:
Type Num Units 1 Bedroom 40 2 Bedroom 60
After I've chosen the comparable sales I want to use, I have a select box on frmSalesInfo that I check. Now I export this data to an excel template using a button on the form which executes an export query. I have been just exporting the frmSalesInfo to an import worksheet to which I link the following worksheets: Adjustment Grid. I use this to make adjustments to the sales and come up with a value. Then I have a seperate worksheet for each sale. This has all of the information of the sale in a report format. I then have been manually adding in the unit mix to each sale worksheet. Then I copy and paste each of these worksheet reports into my appraisal report, which is in word format. However, I am starting to deal with sales which have 15 or even 20 different types of units. So, I've been trying to figure out how to add both sets of data as they relate to each sale. Everyone says do: DoCmd.TransferSpreadsheet, but I have limited knowledge of VBA and have no idea how to implement this.
Also since I'm going to be taking to time to learn how to do this, I was wondering if I could also automatically insert rows for the number different types of units. So far example, right now on my current template for each report, in the middle of the page I have a section that says Unit Mix and then I leave three rows to allow for me to enter each type of unit. I'm wondering if I could automatically insert those rows for any number of units I have.
I am attaching an example of the template I'm using. The 1st worksheet is where I import the data (actually it's exported from access to excel). The second has my adjustment grid. The remaining three worksheets are each sale. I just put 3 in there for now, but I can have as many as 10. I had just copied and pasted Sales 2 & 3 from Sale #1 so the links aren't correct (I didn't want to take the time to go through each cell and put the correct reference column in just for a sample). I highlighted in yellow the areas where I need the subform data be added.
Any help you could give me would be much appreciated.