if you want to auto-define the url link by using the 'value' of another field
in the table (i.e. the primary key) then you might try this via a query
rather than via the default value of the form....
in a query you can have a field that is a calculated value based upon the
value of another field of the same record - so you should be able to plug in
that record's key value into your preset url string text....
then of course build the form off the query....
--
NTC
Richard Sunderland said:
Thanks, I did try this with the following on the default value of the
underlying table (where [DMS Ref] is the primary key of that table):
="S:\DMS Database\Documents\" & [DMS Ref]
But it doesn't like it.
What I was thinking was an option button on the overlying form with code on
the Onclick event that points to that document (if it exists of course).
Does anyone know if this is possible?
Thanks
Richard
:
I think you would want to add a new column to your underlying table....in
Design View, add a new item & select the hyperlink option as the Datatype.
then in the table itself...you will have a new column....you can type in the
path here
or put your cursor in a blank field in that column and right click and you
will see that 'hyperlink' is one option....select the 'Edit Hyperlink' and it
will open the window browser for you to go find the document...
--
NTC
:
I want to create a link to a document relating to a particular record. The
name of the document will be the same as the primary key reference of the
record and all documents will reside in the same directory but maybe of
different file types - what is the best way to go about this?
thanks
Richard