1. To do this efficiently, I suggest you create another table with 3 fields:
Country Text
EntryType Text
Amount Currency
Save as (say) tblData.
2. Create a query into the original table.
In the Field row, enter:
Country: Split("US/Budget/100", "/")(0)
In the next column in the Field row, enter:
EntryType: Split("US/Budget/100", "/")(1)
In the third column in the Field row, enter:
Amount: CCur(Nz(Split("US/Budget/100", "/")(2),0))
3. Change this query into an Append query (Append on Query menu), and answer
that you want to append to the table you created in step 1. Run the query to
populate the table. No need to save it.
4. Create a query into tblData.
Drag Country and EntryType into the grid.
In the Criteria row under EntryType, enter:
"Budget"
Type this into a fresh column in the Field row:
Variance: (SELECT Actual FROM tblData AS Dupe
WHERE Dupe.Country = tblData.Country
AND Dupe.EntryType = 'Actual') - [Budget]
Notes
====
If you are using Access 2000, you could run into this problem at step 2:
http://support.microsoft.com/?id=225956
Step 4 involves a subquery. If subqueries are new, see:
How to Create and Use Subqueries
at:
http://support.microsoft.com/?id=209066