Originally Posted by
snb
You can use a querytable in Excel to retrieving the data from Access.
You can link every shape in Excel to that querytable, so that clicking the shape uses the data in the querytable to open the worddocument.
To me a Form in Access seems to be fully redundant.
That's sort of doing all the coding I've done in Access one more time in Excel ... that's bad practice, I think.
I can call the sub from the immidiate window WITHIN ACCESS this way:
Forms("PERSON Vedligehold af")![Sub Form Hændelser].Form.getDocument
and it works nicely !
But "Forms("PERSON Vedligehold af")![Sub Form Hændelser].Form.getDocument" CAN'T be inserted in Excel without some change of " to []:
With appAccess
.Run "prepPersonForm", id, "tabHændelser", Hid <<<<<<<<<<<<<<<<<<<<<<<< this call works nicely - the sub "prepPersonForm" in placed in a MODULE
.Run "Forms([PERSON Vedligehold af])![Sub Form Hændelser].Form.GetDocument" <<<<<<< I changed the " to [] - but it can't be found !
SetForegroundWindow .Application.hWndAccessApp
End With
HILFE .... that's german and means HELP !
EDIT: Oh, I forgot to comment on the "form in Access" - that form is NOT primarily to serve this "fiddling" from Excel - it's the "main thing" in the system ... all data is entered in that form. Every social event is commented in details there.
What I do in Excel is just another way of showing events on a timelime - in the form they are shown in a listbox and you don't have the same feeling of "time span" in a listbox.