Hi MalicUK
This sounds quite encouraging - I won't have a chance to play around with it though until later on this week - will report back then. Thanks
Julia
Main Topics
Browse All TopicsI have a series of contracts with unique numbers. These are associated with a company name, contract name and an abstract (that is too long for a field in Excel) all on a one-to-one basis. Each contract number also has assigned any of a number of preset keywords on a one-to-many basis. (N.B. Each Keyword can also exist in many contracts, but this is not important to the database and is not accounted for). This is all currently handled in Access (my favourite 'pet' application). However, my company doesn't want to run Access corporately and wants me to provide a solution within normal Microsoft Office applications which install with standard version of office (Word, Excel etc). I think I may need to hold the Abstracts against contract number in Word as they are too large for an Excel cell, but I could set up two tables with the one to one data and the one to many keyword data in a couple of Excel tables. I want for the user to somehow select a keyword/s (one or many) and for the system to list all the contract abstracts for contracts with that/those keywords assigned to them. The thing is I don't know how get it to all work together, but assume it must be able to somehow - can the Microsoft applications function like a database please? It's not fair - I had a fabulous system built in Access - forms and everything!!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: MalicUKPosted on 2007-09-20 at 06:52:32ID: 19928284
Hi Julia,
) tion")
ell).Colum n ell).Row Anchor:=Cells(i, LastCol + 1), Address:=strAbstractPath & Cells(i, 1).Value & ".doc", TextToDisplay:=strAbstract Path & Cells(i, 1).Value & ".doc"
I feel for your situation, we have the same problem with our guys not supporting Access - it's a pain, especially since they take so long/charge so much to develop something in their agreed systems.
However, I can see a simple solution to your problem. If you run the "ExportAbstracts" code below in access then it will run through the "tblData" Table, exporting the "Abstract" field to a word document with the filename [Contract Number].doc
Then, just set up a query which exports the rest of the fields to excel.
Now, in excel, run the "CreateLinks" code which will add a link to each row of data, linking to the abstract for that contract number.
The only thing you need to change in the 2 subs is the "strAbstractPath" path for where you want your abstracts saving.
Finally, you can create a form in Excel (pretty easy if you've done many in Access) which the users can use to enter/edit data. The only further code you will need is some to create the hyperlink for each data item when a new one is added.
This might not be the ideal solution but it should be workable with the restrictions in place.
Sub ExportAbstracts()
Dim db, rs As Recordset, wdApp As Object, wdBook As Object, strAbstractPath As String
strAbstractPath = "F:\Abstract\"
Set db = CurrentDb
Set rs = db.OpenRecordset("tblData"
rs.MoveFirst
Set wdApp = CreateObject("Word.Applica
Do
Set wdBook = wdApp.Documents.Add
wdApp.Selection.TypeText rs!Abstract
wdBook.SaveAs strAbstractPath & rs![Contract Number] & ".doc"
wdBook.Close
rs.MoveNext
Loop While Not rs.EOF
wdApp.Quit False
rs.Close
Set rs = Nothing: Set db = Nothing: Set wdApp = Nothing
End Sub
Sub CreateLinks()
Dim i As Long, LastCol As Long, strAbstractPath As String
strAbstractPath = "F:\Abstract\"
LastCol = Cells.SpecialCells(xlLastC
For i = 2 To Cells.SpecialCells(xlLastC
ActiveSheet.Hyperlinks.Add
Next
End Sub
Cheers,
MalicUK.