Heather,
I think I would do as Dave recommended.
Create a table that contains the structure of the data you want to import
B_Qtr (Text, 9)
Year (Numeric, Long)
DealID(Numeric, Long)
Don't include Deal Type in this table
Sold_To_Name (Text, 45)
Contract_End_Date (Date/Time)
Renewal_Year (Numeric, Long)
R_Qtr (Text, 9)
Field1 (Currency)
Field2 (Currency)
Field3 (Currency)
In your code, do the following:
1. Run a delete query that deletes all of the data from this table
2. Use the Transferspreadsheet method to append the data from your
spreadsheet into this table
3. Use an append query to migrate this data from your import table into the
production table. In the production table include your Booking_Qtr and
Renewal_Qtr fields (both of which should be integer data type) , but when
you run the append query, strip the quarter off the back of the year using
the Mid( ) function. It will look something like:
Mid([B_Qtr], 6)
Mid([R_Qtr], 6)
Once you have these imported into your production table, you can concatenate
them with the Booking year and Renewal year to display it in a format,
something like: [Booking_Year] & "-" & [Booking_Qtr]
BTW, I strongly recommend that you remove all of the spaces from your field
names. Spaces in table and field names force you to wrap any reference to
them in brackets [ ] which can get a bit annoying after a while. If you
feel you need space between words in a table or field name, use an
underscore.
Dale